Skip to content

Commit cd6baaf

Browse files
committed
fix: global默认不进行pollyfill,兼容quickjs
Signed-off-by: lilei946 <snowinter2008@gmail.com>
1 parent 28bd33c commit cd6baaf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • packages/hap-toolkit/src/gen-webpack-conf

packages/hap-toolkit/src/gen-webpack-conf/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ export default async function genWebpackConf(launchOptions, mode) {
225225
}) && !isCard
226226

227227
const webpackConf = {
228+
node: {
229+
global: false
230+
},
228231
context: cwd,
229232
mode,
230233
cache,

0 commit comments

Comments
 (0)