In the following code:
ROOTNS.ui.components.orgChart = (function () {
import PubSub from 'pubsub-js'
})();
I get the runtime error on the import statement of:
Uncaught SyntaxError: Unexpected identifier
My app is based on Chromium version 66, which supports the import statement, so what is wrong with the syntax?
importneeds to be at the top of your unit.PubSubneed to be inside the closure.?