Embedding the modeler into my local application,after the bpmn-js installed,when i import Modeler from ‘bpmn-js/lib/Modeler’ ,it throw a error whitch in ./~bpmn-js@2.4.0bpmn-js/lib/Modeler.js. Module build failed:Error:parse Error:Line 1 :Illegal import declaration.
But i see the source code of bpmn-js package ,the declaration about import is no problem.
I want to integrate bpmn-js into my project. Using the webpack to handle the js file in my project.but i try to use bpmn-js in my project ,it throw error.i don’t know how to resolve the error .