-
Notifications
You must be signed in to change notification settings - Fork 4.9k
修复Windows下MultiPlatformPlugin无法识别斜杠的问题 #17432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b66ce38
to
e1d595c
Compare
@clayzx 需要解决一下lint的问题 |
我就只把: 没有lint错误啊! |
|
好的,已经去掉了 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17432 +/- ##
========================================
Coverage 57.70% 57.70%
========================================
Files 469 469
Lines 26551 26551
Branches 5830 5835 +5
========================================
Hits 15321 15321
- Misses 9612 9726 +114
+ Partials 1618 1504 -114
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
@tutuxxx @Single-Dancer 借楼反馈一下,最近无法新建提交issue了,提交还是回到了isssue列表 这个问题在使用 taro/packages/taro-webpack5-runner/src/plugins/MiniCompileModePlugin.ts Lines 298 to 302 in 8ae3f2d
|
在Windows平台,reslove的路径为:D:\projects\example\node_modules\@test\test... 执行filePath = filePath.replace(path.sep, '/');后的路径为: D:/projects\example\node_modules\@test\test...
原来的replace只能替换第一个斜杠,导致外部配置带斜杠的不会生效。如:include=['@test/test']
这个 PR 做了什么? (简要描述所做更改)
修复Windows下MultiPlatformPlugin无法识别斜杠的问题
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: