@modular-css/vite 30.2.6 → 30.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vite.js +3 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modular-css/vite",
3
- "version": "30.2.6",
3
+ "version": "30.2.8",
4
4
  "description": "vite support for modular-css",
5
5
  "main": "./vite.js",
6
6
  "repository": {
package/vite.js CHANGED
@@ -220,7 +220,7 @@ module.exports = (
220
220
  return this.error(e);
221
221
  }
222
222
 
223
- const { code : css, namedExports, warnings } = transform(file, processor, pluginOptions);
223
+ const { code : css, warnings } = transform(file, processor, pluginOptions);
224
224
 
225
225
  warnings.forEach((warning) => {
226
226
  this.warn(warning);
@@ -253,9 +253,8 @@ module.exports = (
253
253
  code : result,
254
254
  map : emptyMappings,
255
255
 
256
- // Disable tree-shaking for CSS modules w/o any classes/values to export
257
- // to make sure they're included in the bundle
258
- moduleSideEffects : namedExports.length || "no-treeshake",
256
+ // Disable tree-shaking for CSS modules to make sure they're included in the bundle
257
+ moduleSideEffects : true,
259
258
  };
260
259
  },
261
260
  };