Skip to content

Commit

Permalink
Fix CI (#9404)
Browse files Browse the repository at this point in the history
* Revert "Bumping lightningcss to 1.22.1 (#9401)"

This reverts commit 3fe61b6.

* Bump lightningcss
  • Loading branch information
mischnic authored Nov 25, 2023
1 parent 3fe61b6 commit d1d24bf
Show file tree
Hide file tree
Showing 5 changed files with 2,879 additions and 3,841 deletions.
2 changes: 2 additions & 0 deletions packages/core/rust/browser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global WebAssembly, crypto */

const {Environment, napi} = require('napi-wasm');

let env;
Expand Down
2 changes: 1 addition & 1 deletion packages/optimizers/css/src/CSSOptimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Parcel\'s default CSS minifer changed from cssnano to lightningcss, but a "cssna

let map;
if (result.map != null) {
let vlqMap = JSON.parse(result.map.toString());
let vlqMap = JSON.parse(Buffer.from(result.map).toString());
map = new SourceMap(options.projectRoot);
map.addVLQMap(vlqMap);
if (prevMap) {
Expand Down
2 changes: 1 addition & 1 deletion packages/transformers/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"nullthrows": "^1.1.1"
},
"devDependencies": {
"lightningcss-wasm": "^1.16.1"
"lightningcss-wasm": "^1.22.1"
},
"browser": {
"lightningcss": "./wasm-wrapper.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/transformers/css/src/CSSTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default (new Transformer({
asset.setBuffer(Buffer.from(res.code));

if (res.map != null) {
let vlqMap = JSON.parse(res.map.toString());
let vlqMap = JSON.parse(Buffer.from(res.map).toString());
let map = new SourceMap(options.projectRoot);
map.addVLQMap(vlqMap);

Expand Down
Loading

0 comments on commit d1d24bf

Please sign in to comment.