File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " unicode-segmenter " : patch
3+ ---
4+
5+ Export bundled entries (` /bundle/*.js ` )
Original file line number Diff line number Diff line change 8383 "import" : " ./intl-polyfill.js" ,
8484 "require" : " ./intl-polyfill.cjs"
8585 },
86+ "./bundle/*" : " ./bundle/*.js" ,
8687 "./package.json" : " ./package.json"
8788 }
8889 },
8990 "files" : [
9091 " /*.js" ,
9192 " /*.cjs" ,
9293 " /*.d.ts" ,
93- " /licenses"
94+ " /licenses" ,
95+ " /bundle"
9496 ],
9597 "scripts" : {
9698 "prepack" : " yarn clean && yarn build" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { build } from 'esbuild';
77let rootDir = path . join ( import . meta. dirname , '..' ) ;
88let srcDir = path . join ( rootDir , 'src' ) ;
99let distDir = path . join ( rootDir , '' ) ;
10- let bundleDir = path . join ( distDir , 'bundle ' ) ;
10+ let bundleDir = path . join ( distDir , 'bundles ' ) ;
1111
1212await fs . mkdir ( distDir , { recursive : true } ) ;
1313
@@ -87,7 +87,7 @@ function rewriteCjs(content) {
8787 format : 'esm' ,
8888 treeShaking : true ,
8989 write : true ,
90- sourcemap : true ,
90+ sourcemap : false ,
9191 } ) ;
9292 await build ( {
9393 bundle : true ,
@@ -98,6 +98,6 @@ function rewriteCjs(content) {
9898 minify : true ,
9999 treeShaking : true ,
100100 write : true ,
101- sourcemap : true ,
101+ sourcemap : false ,
102102 } ) ;
103103}
You can’t perform that action at this time.
0 commit comments