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 83
83
"import" : " ./intl-polyfill.js" ,
84
84
"require" : " ./intl-polyfill.cjs"
85
85
},
86
+ "./bundle/*" : " ./bundle/*.js" ,
86
87
"./package.json" : " ./package.json"
87
88
}
88
89
},
89
90
"files" : [
90
91
" /*.js" ,
91
92
" /*.cjs" ,
92
93
" /*.d.ts" ,
93
- " /licenses"
94
+ " /licenses" ,
95
+ " /bundle"
94
96
],
95
97
"scripts" : {
96
98
"prepack" : " yarn clean && yarn build" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { build } from 'esbuild';
7
7
let rootDir = path . join ( import . meta. dirname , '..' ) ;
8
8
let srcDir = path . join ( rootDir , 'src' ) ;
9
9
let distDir = path . join ( rootDir , '' ) ;
10
- let bundleDir = path . join ( distDir , 'bundle ' ) ;
10
+ let bundleDir = path . join ( distDir , 'bundles ' ) ;
11
11
12
12
await fs . mkdir ( distDir , { recursive : true } ) ;
13
13
@@ -87,7 +87,7 @@ function rewriteCjs(content) {
87
87
format : 'esm' ,
88
88
treeShaking : true ,
89
89
write : true ,
90
- sourcemap : true ,
90
+ sourcemap : false ,
91
91
} ) ;
92
92
await build ( {
93
93
bundle : true ,
@@ -98,6 +98,6 @@ function rewriteCjs(content) {
98
98
minify : true ,
99
99
treeShaking : true ,
100
100
write : true ,
101
- sourcemap : true ,
101
+ sourcemap : false ,
102
102
} ) ;
103
103
}
You can’t perform that action at this time.
0 commit comments