@modular-css/vite 30.2.7 → 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.
- package/package.json +1 -1
- package/vite.js +3 -4
package/package.json
CHANGED
package/vite.js
CHANGED
|
@@ -220,7 +220,7 @@ module.exports = (
|
|
|
220
220
|
return this.error(e);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
const { code : css,
|
|
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
|
|
257
|
-
|
|
258
|
-
moduleSideEffects : Boolean(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
|
};
|