生成2份代码, 一份es6版,一份next版

pull/1/head
yutent 2023-03-14 10:23:35 +08:00
parent 5624fa43eb
commit efd6e0862d
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@bd/core",
"version": "1.0.2",
"version": "1.1.0",
"type": "module",
"description": "百搭UI组件库的核心",
"main": "dist/index.js",
@ -8,7 +8,8 @@
"dist/*"
],
"scripts": {
"build": "esbuild src/index.js --minify --bundle --format=esm --target=es2017 --outfile=dist/index.js"
"build": "esbuild src/index.js --minify --bundle --format=esm --target=esnext --outfile=dist/index.js",
"build-es6": "esbuild src/index.js --minify --bundle --format=esm --target=es6 --outfile=dist/index.es6.js"
},
"repository": {
"type": "git",