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
5 changes: 5 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,11 @@
// this.options contains this options hash, this.callback contains the node-style callback
let basedir = ''
let defaultExt = ''

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

View workflow job for this annotation

GitHub Actions / Testing on Node.js 16.x (macos-11)

Trailing spaces not allowed

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

View workflow job for this annotation

GitHub Actions / Testing on Node.js 16.x (windows-latest)

Trailing spaces not allowed

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

View workflow job for this annotation

GitHub Actions / Testing on Node.js 16.x (ubuntu-latest)

Trailing spaces not allowed

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

View workflow job for this annotation

GitHub Actions / Testing on Node.js 16.x (ubuntu-latest)

Trailing spaces not allowed
if (process.platform === 'win32') {
prev = decodeURIComponent(prev)
}

if (path.isAbsolute(prev)) {
({ dir: basedir, ext: defaultExt } = path.parse(prev))
} else {
Expand Down