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: