Skip to content

Commit

Permalink
update plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Sep 11, 2024
1 parent 06c18e2 commit b02fe38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function resolvePlugins(
assetPlugin(config),
...normalPlugins,
enableNativePlugin ? nativeWasmFallbackPlugin() : wasmFallbackPlugin(),
(enableNativePlugin && isBuild) ? null : definePlugin(config),
(false && isBuild) ? null : definePlugin(config),
cssPostPlugin(config),
isBuild && buildHtmlPlugin(config),
workerImportMetaUrlPlugin(config),
Expand Down
7 changes: 7 additions & 0 deletions playground/json/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {defineConfig} from 'vite'

export default defineConfig({
build: {
minify: false
}
})
2 changes: 1 addition & 1 deletion playground/vitestSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export async function startDefaultServe(): Promise<void> {
const buildConfig = mergeConfig(
await loadConfig({ command: 'build', mode: 'production' }),
{
plugins: [resolvedPlugin()],
plugins: [resolvedPlugin() as any],
},
)
const rollupOutput = await build(buildConfig)
Expand Down

0 comments on commit b02fe38

Please sign in to comment.