Skip to content

Commit 9e8829a

Browse files
authored
fix(material): tsup bundle (#598)
* fix(material): tsup bundle * feat: license
1 parent 7ecabbb commit 9e8829a

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

packages/materials/form-materials/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323
"scripts": {
2424
"build": "npm run build:fast -- --dts-resolve",
25-
"build:fast": "tsup src/index.ts --format esm --sourcemap --legacy-output",
25+
"build:fast": "tsup src/index.ts --format cjs,esm --sourcemap --legacy-output",
2626
"build:watch": "npm run build:fast -- --dts-resolve",
2727
"clean": "rimraf dist",
2828
"test": "exit 0",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3+
* SPDX-License-Identifier: MIT
4+
*/
5+
6+
import { defineConfig } from 'tsup';
7+
8+
export default defineConfig({
9+
// https://tsup.egoist.dev/#inject-cjs-and-esm-shims
10+
shims: true,
11+
});

0 commit comments

Comments
 (0)