File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export function definePlugin(config: ResolvedConfig): Plugin {
118
118
return pattern
119
119
}
120
120
121
- if ( isBuild && config . nativePluginEnabledLevel >= 1 ) {
121
+ if ( isBundled && config . nativePluginEnabledLevel >= 1 ) {
122
122
return {
123
123
name : 'vite:define' ,
124
124
options ( option ) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export const modulePreloadPolyfillId = 'vite/modulepreload-polyfill'
8
8
const resolvedModulePreloadPolyfillId = '\0' + modulePreloadPolyfillId + '.js'
9
9
10
10
export function modulePreloadPolyfillPlugin ( config : ResolvedConfig ) : Plugin {
11
- if ( config . command === 'build' && config . nativePluginEnabledLevel >= 1 ) {
11
+ if ( config . isBundled && config . nativePluginEnabledLevel >= 1 ) {
12
12
return perEnvironmentPlugin (
13
13
'native:modulepreload-polyfill' ,
14
14
( environment ) => {
You can’t perform that action at this time.
0 commit comments