You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run parcel index.html (run dev server) the dynamic imports are working
When I run parcel build index.html (build static files for browser) the dynamic imports are not working.
Well.. obviously - the browser doesn't know how to handle this promise which is not transformed to es5 in the build stage.
馃敠 Context
I want to load specific files based on the locale of the user - if the user is from USA I will load English and LTR css files.
If the user is from Israel I will load Hebrew and RTL css files. etc.
So as you can see, I need to load the specific css file respectively.
#4782 馃悰 bug report
When I run
parcel index.html
(run dev server) the dynamic imports are workingWhen I run
parcel build index.html
(build static files for browser) the dynamic imports are not working.This is the dynamic import I am trying to do:
馃帥 Configuration (.babelrc, package.json, cli command)
There is no .babelrc or babel.config.js file.
馃 Expected Behavior
First it should be working.
Second it should be work instead of this:
but like this:
馃槸 Current Behavior
I got the following error when running the static files in browser (under http-server, of course):
Unhandled Promise Rejection: Error: Cannot find module 'irlt'
Well.. obviously - the browser doesn't know how to handle this promise which is not transformed to es5 in the build stage.
馃敠 Context
I want to load specific files based on the locale of the user - if the user is from USA I will load English and LTR css files.
If the user is from Israel I will load Hebrew and RTL css files. etc.
So as you can see, I need to load the specific css file respectively.
馃捇 Code Sample
The text was updated successfully, but these errors were encountered: