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
package.json with the following content for a dependency called foo:
{
"name": "foo",
"sideEffects": [ "**.css.js" ]
}
Import a side-effect file in my project:
import'foo/style/button.css.js';
馃 Expected Behavior
The imported file button.css.js should be included in the production bundle due to the specified glob pattern in sideEffects, which indicates that any .css.js files should not be treated as having no side effects.
馃槸 Current Behavior
The file button.css.js is being removed from the production bundle, which suggests that the sideEffects property is not working as intended.
馃悰 bug report
馃帥 Configuration (.babelrc, package.json, cli command)
package.json
with the following content for a dependency calledfoo
:Import a side-effect file in my project:
馃 Expected Behavior
The imported file
button.css.js
should be included in the production bundle due to the specified glob pattern in sideEffects, which indicates that any.css.js
files should not be treated as having no side effects.馃槸 Current Behavior
The file
button.css.js
is being removed from the production bundle, which suggests that thesideEffects
property is not working as intended.馃拋 Possible Solution
Fix in the PR: devongovett/glob-match#12
馃敠 Context
馃捇 Code Sample
馃實 Your Environment
The text was updated successfully, but these errors were encountered: