Parcel-dynamic-import
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
Setup
Install project dependencies and start the Parcel development server.
npm install
npm run start
Problem 1
Point browser to http://localhost:1234/index.html and open the javascript console.
Expected
hello bars!
hello world!
hello foos!
Actual
hello bars!
hello world!
Problem 2
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