File tree Expand file tree Collapse file tree
packages/vite/src/node/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export async function resolvePlugins(
9898 esbuildBannerFooterCompatPlugin ( config ) ,
9999 config . oxc !== false ? oxcPlugin ( config ) : null ,
100100 nativeJsonPlugin ( { ...config . json , minify : isBuild } ) ,
101- wasmHelperPlugin ( config ) ,
101+ wasmHelperPlugin ( ) ,
102102 webWorkerPlugin ( config ) ,
103103 assetPlugin ( config ) ,
104104
Original file line number Diff line number Diff line change 11import { exactRegex } from 'rolldown/filter'
2- import { viteWasmHelperPlugin as nativeWasmHelperPlugin } from 'rolldown/experimental'
32import type { Plugin } from '../plugin'
4- import type { ResolvedConfig } from '..'
53import { fileToUrl } from './asset'
64
75const wasmHelperId = '\0vite/wasm-helper.js'
@@ -50,13 +48,7 @@ const wasmHelper = async (opts = {}, url: string) => {
5048
5149const wasmHelperCode = wasmHelper . toString ( )
5250
53- export const wasmHelperPlugin = ( config : ResolvedConfig ) : Plugin => {
54- if ( config . isBundled ) {
55- return nativeWasmHelperPlugin ( {
56- decodedBase : config . decodedBase ,
57- } )
58- }
59-
51+ export const wasmHelperPlugin = ( ) : Plugin => {
6052 return {
6153 name : 'vite:wasm-helper' ,
6254
You can’t perform that action at this time.
0 commit comments