Browse Source

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

es6
Treecat 2 years ago
parent
commit
c9e86b3f6f
  1. 8
      package.json

8
package.json

@ -3,11 +3,13 @@
"version": "2.0.20230208163847", "version": "2.0.20230208163847",
"description": "fineui", "description": "fineui",
"main": "dist/fineui_without_conflict.min.js", "main": "dist/fineui_without_conflict.min.js",
"module": "dist/esm/index.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",
"bin": { "bin": {
"fui-cli": "./bin/cli/cli.js" "fui-cli": "./bin/cli/cli.js"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.17.4", "@babel/core": "^7.17.4",
"@fui/babel-preset-fineui": "^3.0.0", "@fui/babel-preset-fineui": "^3.0.0",
"@fui/eslint-plugin": "^1.0.19", "@fui/eslint-plugin": "^1.0.19",
@ -21,6 +23,7 @@
"@typescript-eslint/parser": "2.33.0", "@typescript-eslint/parser": "2.33.0",
"autoprefixer": "9.6.1", "autoprefixer": "9.6.1",
"babel-loader": "8.0.6", "babel-loader": "8.0.6",
"babel-plugin-module-resolver": "^5.0.0",
"chai": "4.2.0", "chai": "4.2.0",
"concat": "1.0.3", "concat": "1.0.3",
"core-js": "3.3.2", "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: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", "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", "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", "postbuild": "node ./lib/postbuild/postbuild.js",
"test": "karma start", "test": "karma start",
"dev": "npm run webpack:dev", "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", "prepublishToPrivate": "npm run build && node ./lib/prepublish/prepublish.js",
"publishToPrivate": "npm publish", "publishToPrivate": "npm publish",
"postpublishToPrivate": " node ./lib/postpublish/postpublish.js", "postpublishToPrivate": " node ./lib/postpublish/postpublish.js",
@ -91,6 +96,7 @@
"author": "fanruan", "author": "fanruan",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@popperjs/core": "2.11.6",
"@types/yargs": "17.0.13", "@types/yargs": "17.0.13",
"jquery": "3.6.3", "jquery": "3.6.3",
"yargs": "17.6.2" "yargs": "17.6.2"

Loading…
Cancel
Save