File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
__tests__/examples/build-backup/sample
packages/hap-toolkit/src/gen-webpack-conf Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 465465 } ,
466466 "./src/regenerator.js" : ( __unused_webpack_module , __unused_webpack_exports , __webpack_require__ ) => {
467467 "use strict" ;
468- const injectRef = Object . getPrototypeOf ( __webpack_require__ . g ) || __webpack_require__ . g ;
468+ const injectRef = Object . getPrototypeOf ( global ) || global ;
469469 injectRef . regeneratorRuntime = __webpack_require__ ( "./node_modules/@babel/runtime/regenerator/index.js" ) ;
470470 } ,
471471 "./node_modules/@babel/runtime/helpers/regeneratorRuntime.js" : ( module , __unused_webpack_exports , __webpack_require__ ) => {
831831 __webpack_modules__ [ moduleId ] ( module , module . exports , __webpack_require__ ) ;
832832 return module . exports ;
833833 }
834- ( ( ) => {
835- __webpack_require__ . g = function ( ) {
836- if ( typeof globalThis === "object" ) return globalThis ;
837- try {
838- return this || new Function ( "return this" ) ( ) ;
839- } catch ( e ) {
840- if ( typeof window === "object" ) return window ;
841- }
842- } ( ) ;
843- } ) ( ) ;
844834 var __webpack_exports__ = { } ;
845835 ( ( ) => {
846836 var $app_style$ = { } ;
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments