Skip to content

Commit

Permalink
fix: set default loader to js
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Apr 28, 2021
1 parent f4ead25 commit 350e48a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ export const bundle = async (
| Loader
| undefined

// Let rollup handle binary files
if (!loader) return

let contents: string | undefined
for (const plugin of plugins) {
if (plugin.load && plugin.name !== 'esbuild') {
Expand Down Expand Up @@ -110,7 +107,7 @@ export const bundle = async (
}
return {
contents,
loader,
loader: loader || 'js',
}
})
},
Expand Down

0 comments on commit 350e48a

Please sign in to comment.