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
I'm using es-dev-server through the karma-esm, lerna, and united custom karma configuration for each package of multirepository. To start karma in a separate package, I need to import babel.config.json in the karma configuration file and load it through the babelConfig of karma-esm.
However, when I do it, karma fails with the following error:
I just require it as a JSON file and push it to babelConfig option.
After some research, I found that es-dev-server loads some default configuration that includes @babel/plugin-proposal-nullish-coalescing-operator, @babel/plugin-proposal-optional-chaining, etc. That configuration merges with my configuration and due to name differences has the duplicates inside. It happens here.
I think there should be some checks that disables default configuration if the user configuration is used or a some kind of option to disable default configuration.
The text was updated successfully, but these errors were encountered:
UPDATE: Issue happens only with @babel/plugin-proposal-nullish-coalescing-operator, @babel/plugin-proposal-optional-chaining on board. There is a remark that these plugins could be removed when babel/babel#10811 is merged. It is merged 21 days ago, the latest babel release was 7.8.5, so I think it can be removed now. I can create a PR for it if you don't mind.
However, still something should be done for deduping plugins or at least the list of used plugins should be mentioned in the documentation somewhere.
BTW, the workaround for this issue is quite simple. You just need to make sure your plugins that conflict with the default ones are moved to a separate environment and not affect the test one.
I'm using
es-dev-server
through thekarma-esm
,lerna
, and united customkarma
configuration for each package of multirepository. To start karma in a separate package, I need to importbabel.config.json
in the karma configuration file and load it through thebabelConfig
ofkarma-esm
.However, when I do it, karma fails with the following error:
My
babel.config.json
file is the following:I just require it as a JSON file and push it to
babelConfig
option.After some research, I found that
es-dev-server
loads some default configuration that includes@babel/plugin-proposal-nullish-coalescing-operator
,@babel/plugin-proposal-optional-chaining
, etc. That configuration merges with my configuration and due to name differences has the duplicates inside. It happens here.I think there should be some checks that disables default configuration if the user configuration is used or a some kind of option to disable default configuration.
The text was updated successfully, but these errors were encountered: