mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-23 17:49:49 +08:00
build(runtime): refactor runtime build
This commit is contained in:
parent
b2fb394031
commit
8155525ee8
@ -23,7 +23,7 @@
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"test": "jest",
|
||||
"build": "tsup src/index.ts --format cjs,esm,iife --legacy-output --clean --sourcemap --metafile",
|
||||
"build": "tsup && npm run visualize",
|
||||
"typings": "tsc --emitDeclarationOnly",
|
||||
"lint": "eslint src --ext .ts",
|
||||
"prepublish": "npm run build && npm run typings",
|
||||
|
13
packages/runtime/tsup.config.ts
Normal file
13
packages/runtime/tsup.config.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
format: ['cjs', 'esm', 'iife'],
|
||||
legacyOutput: true,
|
||||
splitting: true,
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
dts: false,
|
||||
metafile: true,
|
||||
platform: 'browser',
|
||||
});
|
Loading…
Reference in New Issue
Block a user