你好:
ts语言,之前使用3.x的版本,包括4.0刚发布的时候也是可以生成spine-core.js文件的。
但是最近4.0分支删除了生成spine.core.js文件的tsconfig.core.json文件,我无法生成4.0版本的spine-core.js文件了,请问我应该怎么才能生成这个文件呢?
敬请回复。
Stranica: 1/1.
zhaodd
8 months ago
- zhaodd
- Postovi: 5
Mario
npm run build
生成所有 .js 文件,例如 脊柱核心/区/ iife。npm run build
generates all .js files in e.g. spine-core/dist/iife. 8 months ago
-
Mario - Postovi: 2965
zhaodd
谢谢
---
麻烦问一下,目前生成的代码是es5的,但我看配置是es6的,我也想生成es6的代码,请问应该怎么做呢?
---
麻烦问一下,目前生成的代码是es5的,但我看配置是es6的,我也想生成es6的代码,请问应该怎么做呢?
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
7 months ago
- zhaodd
- Postovi: 5
Mario
抱歉,在这种情况下,您必须修改调用 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.
但是,如果您想要 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.
7 months ago
-
Mario - Postovi: 2965
zhaodd
谢谢
7 months ago
- zhaodd
- Postovi: 5
Mark topic unread
• Stranica: 1/1.
Natrag na 中国Spine用户
- Vremenska zona: UTC