抱歉,在这种情况下,您必须修改调用 esbuild 的 package.json 脚本,这是我们使用的打包器。 见 https://esbuild.github.io/api/#platform
但是,如果您想要 ES6 + 模块,我强烈建议您使用我们发布的 NPM 包。 这允许摇树和其他 ES6 + 模块的好处。
Sorry, in that case you'll have to modify the package.json scripts that invoke esbuild, which is the bundler we use. See https://esbuild.github.io/api/#platform
However, if you want ES6 + modules, I strongly suggest to simply go with the NPM package we publish. That allows tree shaking and other ES6 + module benefits.