Skip to content

Commit bf84ccb

Browse files
authored
feat(native-plugin): use js alias plugin in dev environment (#231)
1 parent f6d1dd5 commit bf84ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/plugins/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function resolvePlugins(
5252
!isBuild ? optimizedDepsPlugin() : null,
5353
!isWorker ? watchPackageDataPlugin(config.packageCache) : null,
5454
!isBuild ? preAliasPlugin(config) : null,
55-
enableNativePlugin === true
55+
enableNativePlugin === true && isBuild
5656
? nativeAliasPlugin({
5757
entries: config.resolve.alias.map((item) => {
5858
return {

0 commit comments

Comments
 (0)