From f138d9a8a164266b03ff3b318c5c1789f73acc46 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 23 Jul 2020 17:42:24 +0800 Subject: [PATCH] fix(cli): normalize runtime path --- packages/webpack-uni-mp-loader/lib/plugin/generate-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-uni-mp-loader/lib/plugin/generate-component.js b/packages/webpack-uni-mp-loader/lib/plugin/generate-component.js index d943ae6b9..fc89fa61e 100644 --- a/packages/webpack-uni-mp-loader/lib/plugin/generate-component.js +++ b/packages/webpack-uni-mp-loader/lib/plugin/generate-component.js @@ -16,7 +16,7 @@ const { const EMPTY_COMPONENT_LEN = 'Component({})'.length -const uniPath = require('@dcloudio/uni-cli-shared/lib/platform').getMPRuntimePath() +const uniPath = normalizePath(require('@dcloudio/uni-cli-shared/lib/platform').getMPRuntimePath()) function findModule (modules, resource, altResource) { return modules.find( -- GitLab