Skip to content

Commit

Permalink
fix: change esm output to dist/es
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Jan 9, 2024
1 parent 1cf0b2d commit d08639a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .fatherrc.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default defineConfig({
// 以下为 esm 配置项启用时的默认值,有自定义需求时才需配置
esm: {
input: 'src', // 默认编译目录
output: 'dist/es',
// extraBabelPlugins: [[require.resolve('./scripts/replaceLib'), {}]],
platform: 'browser', // 默认构建为 Browser 环境的产物
transformer: 'babel', // 默认使用 babel 以提供更好的兼容性
Expand Down
1 change: 1 addition & 0 deletions packages/react-markdown-lowcode-materials/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"buildOnSave": false,
"compileOnSave": false,
"compilerOptions": {
"declaration": true,
"outDir": "build",
"module": "esnext",
"target": "es6",
Expand Down
1 change: 1 addition & 0 deletions packages/yunti-ui-lowcode-materials/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"buildOnSave": false,
"compileOnSave": false,
"compilerOptions": {
"declaration": true,
"outDir": "build",
"module": "esnext",
"target": "es6",
Expand Down

0 comments on commit d08639a

Please sign in to comment.