Skip to content
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

fix: 修改Windows运行时sass1.37.5版本的sass uri must have scheme 'file:'的bug #15582

Merged
merged 9 commits into from
May 30, 2024
3 changes: 3 additions & 0 deletions packages/taro-rn-style-transformer/src/transforms/sass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
// this.options contains this options hash, this.callback contains the node-style callback
let basedir = ''
let defaultExt = ''
if (process.platform === 'win32') {
prev = decodeURIComponent(prev)

Check warning on line 79 in packages/taro-rn-style-transformer/src/transforms/sass.ts

View check run for this annotation

Codecov / codecov/patch

packages/taro-rn-style-transformer/src/transforms/sass.ts#L79

Added line #L79 was not covered by tests
}
if (path.isAbsolute(prev)) {
({ dir: basedir, ext: defaultExt } = path.parse(prev))
} else {
Expand Down