Skip to content

Commit

Permalink
fix(bundling): rspack should allow ES config module imports
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Nov 27, 2024
1 parent b018b94 commit e0f17c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function resolveUserDefinedRspackConfig(
// Don't transpile non-TS files. This prevents workspaces libs from being registered via tsconfig-paths.
// There's an issue here with Nx workspace where loading plugins from source (via tsconfig-paths) can lead to errors.
if (!/\.(ts|mts|cts)$/.test(path)) {
return require(path);
return import(path);
}

const cleanupTranspiler = registerTsProject(tsConfig);
Expand Down

0 comments on commit e0f17c2

Please sign in to comment.