Skip to content

Commit

Permalink
fix: cjs 产物
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Nov 23, 2020
1 parent eb07408 commit 3633d35
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 64 deletions.
7 changes: 4 additions & 3 deletions haoma-compile.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ export default [
}),
getCompileConfig({
name: 'cjs',
inputFiles: ['lib/**/*.js'],
inputFiles: ['src/**/*.ts', '!**/*.test.*', '!**/__*'],
module: 'cjs',
target: 'browser',
outDir: 'lib/_cjs',
emitDts: false,
renameImport: [
{
original: 'yup/es(.*)$',
original: /yup\/es(.*)$/,
replacement: 'yup/lib$1',
},
{
original: 'date\\-fns/esm(.*)$',
original: /date-fns\/esm(.*)$/,
replacement: 'date-fns$1',
},
],
Expand Down
Loading

0 comments on commit 3633d35

Please sign in to comment.