Skip to content

Commit

Permalink
fix: Don't use bun to load entrypoint config (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 authored Nov 11, 2023
1 parent 3ab9fe4 commit 44d715a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/utils/building/import-entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export async function importEntrypointFile<T>(
'node_modules/wxt/dist/virtual/mock-browser.js',
),
},
// Continue using node to load TS files even if `bun run --bun` is detected. Jiti does not
// respect the custom transform function when using it's native bun option.
experimentalBun: false,
// List of extensions to transform with esbuild
extensions: ['.ts', '.cts', '.mts', '.tsx', '.js', '.cjs', '.mjs', '.jsx'],
transform(opts) {
Expand Down

0 comments on commit 44d715a

Please sign in to comment.