File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ async function bundle(options: BuildOptions & EntryPointOptions) {
202
202
const origin = chunk . text
203
203
const sourcemap = extractInlineSourcemap ( origin )
204
204
const result = ts . transpileModule ( removeInlineSourceMap ( origin ) , {
205
- fileName : chunk . path . replace ( / . j s $ / , '.ts' ) ,
205
+ fileName : chunk . path ,
206
206
compilerOptions : {
207
207
sourceMap : true ,
208
208
module :
@@ -253,7 +253,11 @@ async function bundle(options: BuildOptions & EntryPointOptions) {
253
253
/**
254
254
* since esbuild doesn't support umd, we use rollup to convert esm to umd
255
255
*/
256
- async function buildUMD ( outputPath : string , prefix : string , globalName : string ) {
256
+ async function buildUMD (
257
+ outputPath : string ,
258
+ prefix : string ,
259
+ globalName : string
260
+ ) {
257
261
for ( let umdExtension of [ 'umd' , 'umd.min' ] ) {
258
262
const input = path . join ( outputPath , `${ prefix } .${ umdExtension } .js` )
259
263
const instance = await rollup . rollup ( {
You can’t perform that action at this time.
0 commit comments