Skip to content

Commit

Permalink
Revert "Bumping lightningcss to 1.22.1 (#9401)"
Browse files Browse the repository at this point in the history
This reverts commit 3fe61b6.
  • Loading branch information
mischnic committed Nov 24, 2023
1 parent 3fe61b6 commit f1ad1d9
Show file tree
Hide file tree
Showing 6 changed files with 2,934 additions and 3,902 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/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@parcel/source-map": "^2.1.1",
"@parcel/utils": "2.10.3",
"browserslist": "^4.6.6",
"lightningcss": "^1.22.1",
"lightningcss": "^1.16.1",
"nullthrows": "^1.1.1"
}
}
4 changes: 2 additions & 2 deletions packages/optimizers/css/src/CSSOptimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Parcel\'s default CSS minifer changed from cssnano to lightningcss, but a "cssna
});

return {
contents: Buffer.from(result.code),
contents: result.code,
};
}
}
Expand All @@ -174,7 +174,7 @@ Parcel\'s default CSS minifer changed from cssnano to lightningcss, but a "cssna
}
}

let contents = Buffer.from(result.code);
let contents = result.code;
if (bundle.env.sourceMap) {
let reference = await getSourceMapReference(map);
if (reference != null) {
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 @@ -25,7 +25,7 @@
"@parcel/source-map": "^2.1.1",
"@parcel/utils": "2.10.3",
"browserslist": "^4.6.6",
"lightningcss": "^1.22.1",
"lightningcss": "^1.16.1",
"nullthrows": "^1.1.1"
},
"devDependencies": {
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 @@ -175,7 +175,7 @@ export default (new Transformer({
}
}

asset.setBuffer(Buffer.from(res.code));
asset.setBuffer(res.code);

if (res.map != null) {
let vlqMap = JSON.parse(res.map.toString());
Expand Down

0 comments on commit f1ad1d9

Please sign in to comment.