Repo showing problem with Parcel bundler and dynamic imports.
Parcel-bundler 1.12.4 Typescript 3.7.2 Node 12.11.1 NPM 6.13.0 Chrome 77.0.3865.120 Ubuntu 18.04.3 LTS
Install project dependencies and start the Parcel development server.
npm install
npm run start
Point browser to http://localhost:1234/index.html and open the javascript console.
hello bars!
hello world!
hello foos!
hello bars!
hello world!
Point browser to http://localhost:1234/index2.html and open the javascript console.
Expected:
hello bars!
hello world!
hello foos!
Actual:
hello bars!
hello world!
> Uncaught ReferenceError: parcelRequire is not defined
at bundle-loader.js:80
at bundle-loader.js:80