mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-05 10:27:04 +08:00
chore: refine building
This commit is contained in:
parent
73f03301fd
commit
3244859962
@ -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'],
|
||||
};
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user