I have an ES6 web application using multiple libraries (eg BabylonJs, React, Material-UI, Material-Tables).
Transpiling this application without tree shaking works (and even the app does).
But transpiling it with --experimental-scope-hoisting produces:
'import' and 'export' may appear only with 'sourceType: "module"' (1:0)
How do I get this resolved?