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 4271788 commit 8b5c16dCopy full SHA for 8b5c16d
index.js
@@ -42,12 +42,14 @@ module.exports = function (options = {}) {
42
const { onwarn, emitCss = true } = rest;
43
44
if (emitCss) {
45
+ const [majorVer] = VERSION.split('.');
46
+ const cssOptionValue = majorVer > 3 ? 'external' : false;
47
if (compilerOptions.css) {
48
console.warn(
- `${PREFIX} Forcing \`"compilerOptions.css": false\` because "emitCss" was truthy.`
49
+ `${PREFIX} Forcing \`"compilerOptions.css": ${typeof cssOptionValue === 'string' ? `"${cssOptionValue}"` : cssOptionValue}\` because "emitCss" was truthy.`
50
);
51
}
- compilerOptions.css = false;
52
+ compilerOptions.css = cssOptionValue;
53
54
55
return {
0 commit comments