(!) Missing global variable nameUse output.globals to specify browser global variable names corresponding to external modulesaxios (guessing 'axios...
解决方案:升级更高版本的 node 1、You have passed an unrecognized option (!) You have passed an unrecognized option Unknown input options: globals. Allowed options: acorn, acornInjectPlugins, cache, context, experimentalCacheExpiry, external, inlineDynamicImports, input, manualChunks, moduleContext, on...
What if you use themainFields: [ "module", "browser", "main" ]instead ofbrowser: true? Themoduleoption for ethers should already be browser-ready for bundling. I’m working on a work around for people that need ESM in mood, but for the browser it should just work. ...
解决方案:升级更高版本的 node 1、You have passed an unrecognized option (!)You have passed an unrecognized option Unknown input options:globals.Allowed options:acorn,acornInjectPlugins,cache,context,experimentalCacheExpiry,external,inlineDynamicImports,input,manualChunks,moduleContext,onwarn,perf,plugins,pre...