Skip to content

Commit

Permalink
fix adjustImportPath on windows (#14461)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Apr 13, 2022
1 parent df5c1eb commit d281a54
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
Expand Down

0 comments on commit d281a54

Please sign in to comment.