We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c5dbec commit d0991e4Copy full SHA for d0991e4
1 file changed
packages/vite-plugin-monkey/src/node/plugins/css.ts
@@ -44,10 +44,11 @@ const filterAsync = async <T>(
44
};
45
46
const staticCssIdSuffix = '__plugin-monkey-static-css';
47
+// https://github.com/lisonge/vite-plugin-monkey/issues/249
48
const staticCssTemplate = `
49
import {0} from '{1}';
50
import importCSS from '${cssModuleId}';
-importCSS({0});
51
+{0} && importCSS({0});
52
export default undefined;
53
`.trimStart();
54
0 commit comments