Skip to content

Commit

Permalink
Allow node specifiers in import conditions for esm loader
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Oct 9, 2024
1 parent 1df66aa commit 481d00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/child-process-esm-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const extensions = process.env["WDS_EXTENSIONS"]!.split(",");
const builtin = new Set(builtinModules);

const esmResolver = new ResolverFactory({
conditionNames: ["import"],
conditionNames: ["node", "import"],
extensions,
extensionAlias: {
".js": [".js", ".ts"],
Expand Down

0 comments on commit 481d00c

Please sign in to comment.