chore: refine building

This commit is contained in:
zyc9012 2022-03-29 23:54:00 +08:00
parent 73f03301fd
commit 3244859962
3 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,7 @@
export default {
target: 'node',
cjs: { type: "babel", lazy: true },
target: 'browser',
cjs: { type: "rollup", lazy: false },
esm: { type: "rollup" },
disableTypeCheck: false,
pkgs: ['core', 'react'],
};

View File

@ -1,10 +1,11 @@
{
"name": "@fortune-sheet/core",
"version": "0.1.0",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"typings": "dist/index.d.ts",
"files": [
"lib"
"dist"
],
"repository": "https://github.com/ruilisi/fortune-sheet",
"license": "MIT",

View File

@ -1,7 +1,8 @@
export default {
target: 'browser',
cjs: { type: 'rollup', lazy: false },
esm: { type: 'rollup' },
target: "browser",
cjs: { type: "rollup", lazy: false },
esm: { type: "rollup" },
umd: { globals: { Workbook: "Workbook" }, minFile: true },
extractCSS: true,
disableTypeCheck: false,
};