Skip to content

Commit d281a54

Browse files
authored
fix adjustImportPath on windows (#14461)
1 parent df5c1eb commit d281a54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/babel-plugin-transform-runtime/scripts/build-dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function buildRuntimeRewritePlugin(runtimeName, helperName) {
258258
* @param {*} node The string literal that contains the import path
259259
*/
260260
function adjustImportPath(node) {
261-
const helpersPath = path.join(runtimeName, "helpers");
261+
const helpersPath = path.posix.join(runtimeName, "helpers");
262262
const helper = node.value.startsWith(helpersPath)
263263
? path.basename(node.value)
264264
: node.value;

0 commit comments

Comments
 (0)