esbuild-css-modules-plugin
Advanced tools
Comparing version 3.0.0-dev.18 to 3.0.0-dev.19
@@ -303,6 +303,5 @@ import { bundle as bundleModulesCss, transform } from 'lightningcss'; | ||
}, | ||
format: 'esm', | ||
outdir: dirname(fullpath), | ||
sourcemap: false, | ||
minify: false, | ||
target: 'esnext', | ||
write: false, | ||
@@ -326,3 +325,3 @@ bundle: true, | ||
}); | ||
originCss = outputFiles[0].text; | ||
originCss = outputFiles.find((f) => f.path.endsWith(`stdin.css`))?.text ?? originCss; | ||
} | ||
@@ -329,0 +328,0 @@ |
@@ -7,2 +7,3 @@ import { isAbsolute, resolve, sep, relative, basename, dirname } from 'node:path'; | ||
import { appendFile, mkdir } from 'node:fs/promises'; | ||
const require = createRequire(import.meta.url); | ||
@@ -190,2 +191,11 @@ | ||
} | ||
if (options.forceInlineImages) { | ||
if (options.force === false) { | ||
// yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String, | ||
console.log( | ||
`\x1b[33m[${pluginName}] Warning: \`force\` will always be \`true\` when \`forceInlineImages\` is \`true\`\x1b[39m` | ||
); | ||
} | ||
options.force = true; | ||
} | ||
}; | ||
@@ -192,0 +202,0 @@ |
{ | ||
"name": "esbuild-css-modules-plugin", | ||
"version": "3.0.0-dev.18", | ||
"version": "3.0.0-dev.19", | ||
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs", |
40141
966