diff --git a/packages/babel-plugin-transform-runtime/scripts/build-dist.js b/packages/babel-plugin-transform-runtime/scripts/build-dist.js index 1c7a879f751d..cf891991b7f1 100644 --- a/packages/babel-plugin-transform-runtime/scripts/build-dist.js +++ b/packages/babel-plugin-transform-runtime/scripts/build-dist.js @@ -258,7 +258,7 @@ function buildRuntimeRewritePlugin(runtimeName, helperName) { * @param {*} node The string literal that contains the import path */ function adjustImportPath(node) { - const helpersPath = path.join(runtimeName, "helpers"); + const helpersPath = path.posix.join(runtimeName, "helpers"); const helper = node.value.startsWith(helpersPath) ? path.basename(node.value) : node.value;