From 44d715a29eb8be6d58df4c216f77e46a01fea45d Mon Sep 17 00:00:00 2001 From: Aaron Date: Sat, 11 Nov 2023 14:46:13 -0600 Subject: [PATCH] fix: Don't use `bun` to load entrypoint config (#232) --- src/core/utils/building/import-entrypoint.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/utils/building/import-entrypoint.ts b/src/core/utils/building/import-entrypoint.ts index 46c9318b8..1b745a432 100644 --- a/src/core/utils/building/import-entrypoint.ts +++ b/src/core/utils/building/import-entrypoint.ts @@ -55,6 +55,9 @@ export async function importEntrypointFile( '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) {