Browse Source

KERNEL-14512 refact: 使用 babel 打包出 ESM 模块

es6
Treecat 1 year ago
parent
commit
c9e86b3f6f
  1. 8
      package.json

8
package.json

@ -3,11 +3,13 @@
"version": "2.0.20230208163847",
"description": "fineui",
"main": "dist/fineui_without_conflict.min.js",
"module": "dist/esm/index.js",
"types": "dist/lib/index.d.ts",
"bin": {
"fui-cli": "./bin/cli/cli.js"
},
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.17.4",
"@fui/babel-preset-fineui": "^3.0.0",
"@fui/eslint-plugin": "^1.0.19",
@ -21,6 +23,7 @@
"@typescript-eslint/parser": "2.33.0",
"autoprefixer": "9.6.1",
"babel-loader": "8.0.6",
"babel-plugin-module-resolver": "^5.0.0",
"chai": "4.2.0",
"concat": "1.0.3",
"core-js": "3.3.2",
@ -66,10 +69,12 @@
"webpack:prod": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack -p --progress --config=webpack/webpack.prod.js --mode production && npm run biCss && npm run jsyCss",
"webpack:css": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack -p --progress --config=webpack/webpack.css.js --mode production",
"start": "node server.js",
"build": "npm run webpack:prod && tsc",
"build": "npm run esm && npm run webpack:prod && tsc",
"postbuild": "node ./lib/postbuild/postbuild.js",
"test": "karma start",
"dev": "npm run webpack:dev",
"esm": "babel src -d dist\\esm --config-file .\\es6.babel.js",
"esm:dev": "babel src -d dist\\esm --config-file .\\es6.babel.js -w",
"prepublishToPrivate": "npm run build && node ./lib/prepublish/prepublish.js",
"publishToPrivate": "npm publish",
"postpublishToPrivate": " node ./lib/postpublish/postpublish.js",
@ -91,6 +96,7 @@
"author": "fanruan",
"license": "MIT",
"dependencies": {
"@popperjs/core": "2.11.6",
"@types/yargs": "17.0.13",
"jquery": "3.6.3",
"yargs": "17.6.2"

Loading…
Cancel
Save