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.
minify: "dce-only
1 parent 9907134 commit 2ac6e70Copy full SHA for 2ac6e70
tsdown.config.ts
@@ -41,7 +41,7 @@ function inlineCssImports(): Rolldown.Plugin {
41
}
42
43
// Inline preflight in v3
44
- if (/corePlugins\.js$/.test(id)) {
+ if (id.endsWith('corePlugins.js')) {
45
let preflightPath = path.resolve(path.dirname(id), './css/preflight.css')
46
let preflightContent = await readFile(preflightPath, 'utf-8')
47
let content = await readFile(id, 'utf-8')
@@ -72,6 +72,7 @@ export default defineConfig({
72
dts: true,
73
sourcemap: false,
74
fixedExtension: true,
75
+ minify: 'dce-only',
76
inlineOnly: false,
77
shims: true,
78
plugins: [patchJiti(), inlineCssImports()],
0 commit comments