Skip to content

Repo showing problem with parcel bundler and dynamic imports.

Notifications You must be signed in to change notification settings

rogerta/parcel-dynamic-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Repo showing problem with parcel bundler and dynamic imports.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published