We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfeafbb commit 6cfbc52Copy full SHA for 6cfbc52
packages/host/src/node/babel-plugin/plugin.ts
@@ -79,9 +79,8 @@ export function replaceWithRequireNodeAddon3(
79
originalPath: string
80
) {
81
const { packageName, relativePath } = determineModuleContext(resolvedPath);
82
- const finalRelPath = relativePath.startsWith("./")
83
- ? relativePath
84
- : `./${relativePath}`;
+ const relPath = relativePath.replaceAll("\\", "/");
+ const finalRelPath = relPath.startsWith("./") ? relPath : `./${relPath}`;
85
86
p.replaceWith(
87
t.callExpression(
0 commit comments