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
The npm bundler supports ES5/CommonJS code, but I'm not against adding support for this syntax, as long as it is only related to parsing the files so that the bundler can continue doing its work. It seems the feature is already supported in all major browsers, thus the code should work at runtime.
We are currently using Babel 6, is there any plugin or configuration tweak available to make it support this syntax?
Are we planning on upgrading to babel 7 later on? to support some ESM packages like the one we have.
I don't think so, TBH, because the way to go for newer versions will be using Client Extensions which build on top of JavaScript browser modules and import maps, so there won't be any need to use custom bundling tools at all π€· .
Issue type (mark with
x
)Version (mark with
x
)Description
Does the bundler support ES2019 "#identifer" in classes? We have a npm dependency package that the bundler cannot read.
I can only show the snippet for now and here it is:
The package is a web component ESM package and is imported as a side effect (e.g. import 'sample') to apply the shadow root to the markup.
Desired behavior:
Bundler's babel to read es2019 class syntax
Current behavior:
Bundler's Babel seems to have an issue with the files that has "#identifier"
Repro instructions (if applicable):
Cannot disclose it but it's similar to this one: #565
Other information (environment, versions etc):
The text was updated successfully, but these errors were encountered: