Skip to content

Commit c2b7052

Browse files
authored
build: update deprecated define option (#205)
1 parent 9618f10 commit c2b7052

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/build/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ async function bundle_code() {
117117
optimization: {
118118
inlineConst: !is_dev,
119119
},
120-
define: {
121-
__DEV__: JSON.stringify(is_dev),
120+
transform: {
121+
define: {
122+
__DEV__: JSON.stringify(is_dev),
123+
},
122124
},
123125
}
124126
}

0 commit comments

Comments
 (0)