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) {
202202 const origin = chunk . text
203203 const sourcemap = extractInlineSourcemap ( origin )
204204 const result = ts . transpileModule ( removeInlineSourceMap ( origin ) , {
205- fileName : chunk . path . replace ( / . j s $ / , '.ts' ) ,
205+ fileName : chunk . path ,
206206 compilerOptions : {
207207 sourceMap : true ,
208208 module :
@@ -253,7 +253,11 @@ async function bundle(options: BuildOptions & EntryPointOptions) {
253253/**
254254 * since esbuild doesn't support umd, we use rollup to convert esm to umd
255255 */
256- async function buildUMD ( outputPath : string , prefix : string , globalName : string ) {
256+ async function buildUMD (
257+ outputPath : string ,
258+ prefix : string ,
259+ globalName : string
260+ ) {
257261 for ( let umdExtension of [ 'umd' , 'umd.min' ] ) {
258262 const input = path . join ( outputPath , `${ prefix } .${ umdExtension } .js` )
259263 const instance = await rollup . rollup ( {
You can’t perform that action at this time.
0 commit comments