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
As of v2.0.0, many projects will inadvertently bundle ES6 source from balanced-match in their ES5 bundles. This is a result of 1) balanced-match v2.0.0 being written in ES6 but not offering a separate ES5 version as well, and 2) most build processes being configured to ignore files in the node_modules folder when transpiring to ES5 (e.g. babel).
To address this issue, this library should offer ES5 and ES6 versions (minified and unminified) to accommodate all JavaScript environments. This will allow projects to use balanced-match without having to worry about transpilation to ES5. The build process would be trivial (compared to larger apps / libraries) and would likely prevent a lot of frustration.
Happy to create a PR with proposed changes.
Thanks!
The text was updated successfully, but these errors were encountered:
jhildenbiddle
added a commit
to jhildenbiddle/balanced-match
that referenced
this issue
Apr 30, 2021
As of v2.0.0, many projects will inadvertently bundle ES6 source from
balanced-match
in their ES5 bundles. This is a result of 1)balanced-match
v2.0.0 being written in ES6 but not offering a separate ES5 version as well, and 2) most build processes being configured to ignore files in thenode_modules
folder when transpiring to ES5 (e.g. babel).To address this issue, this library should offer ES5 and ES6 versions (minified and unminified) to accommodate all JavaScript environments. This will allow projects to use
balanced-match
without having to worry about transpilation to ES5. The build process would be trivial (compared to larger apps / libraries) and would likely prevent a lot of frustration.Happy to create a PR with proposed changes.
Thanks!
The text was updated successfully, but these errors were encountered: