Commit f9c50063 by xuzhenzhao

chore(custom): rollup.config.js

parent 6238fb7c
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
"exports": { "exports": {
".": { ".": {
"import": "./dist/index.umd.js", "import": "./dist/index.mjs",
"require": "./dist/index.umd.js" "require": "./dist/index.umd.js"
} }
}, },
......
...@@ -12,9 +12,17 @@ export default [ ...@@ -12,9 +12,17 @@ export default [
format: 'esm' format: 'esm'
}, },
plugins: [ plugins: [
typescript() typescript(),
nodeResolve({
browser: true,
}),
commonjs(),
json(),
babel({
babelHelpers: 'inline'
}),
], ],
external: ['axios', 'js-cookie', 'blueimp-md5', 'qs', 'mathjs'] external: ['axios', 'js-cookie', 'blueimp-md5', 'qs']
}, },
/** /**
* umd 版本兼容es5 * umd 版本兼容es5
......
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