Commit 7577b913 by xuzhenzhao

chore(custom): rollup add mathjs resolve

parent 2959fb8e
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
"lib": "npx rollup -c", "lib": "npx rollup -c",
"test": "npx jest __tests__", "test": "npx jest __tests__",
"doc": "npx typedoc", "doc": "npx typedoc",
"prepublishOnly": "npm run lib" "prepublishOnly": "npm run lib",
"commit": "git add . && npx cz-customizable"
}, },
"keywords": [ "keywords": [
"pay", "pay",
...@@ -38,6 +39,9 @@ ...@@ -38,6 +39,9 @@
}, },
"devDependencies": { "devDependencies": {
"@jest/globals": "^28.1.3", "@jest/globals": "^28.1.3",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@types/blueimp-md5": "^2.18.0", "@types/blueimp-md5": "^2.18.0",
"@types/consola": "^2.2.5", "@types/consola": "^2.2.5",
"@types/jest": "^28.1.6", "@types/jest": "^28.1.6",
......
import typescript from 'rollup-plugin-typescript2' import typescript from 'rollup-plugin-typescript2'
import json from '@rollup/plugin-json';
import commonjs from '@rollup/plugin-commonjs';
import {nodeResolve} from '@rollup/plugin-node-resolve';
export default [ export default [
{ {
...@@ -18,6 +21,13 @@ export default [ ...@@ -18,6 +21,13 @@ export default [
name: 'YDLToolKit', name: 'YDLToolKit',
format: 'umd' format: 'umd'
}, },
plugins: [typescript()] plugins: [
typescript(),
commonjs(),
json(),
nodeResolve({
dedupe: ['mathjs']
})
]
} }
] ]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment