Skip to content

Commit

Permalink
feat(styled-jsx): Accept browsers on lightningcss mode (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Nov 14, 2023
1 parent 02f9822 commit 08d03b9
Show file tree
Hide file tree
Showing 83 changed files with 734 additions and 652 deletions.
304 changes: 174 additions & 130 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/constify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ version = "0.1.0"
crate-type = ["cdylib", "rlib"]

[dependencies]
swc_common = { version = "0.33.0", features = ["concurrent"] }
swc_common = { version = "0.33.8", features = ["concurrent"] }
swc_constify = { path = "./transform" }
tracing = { version = "0.1.37", features = ["release_max_level_off"] }
swc_ecma_visit = "0.96.0"
swc_ecma_utils = "0.124.4"
swc_ecma_ast = "0.110.0"
swc_ecma_visit = "0.96.9"
swc_ecma_utils = "0.124.27"
swc_ecma_ast = "0.110.9"
swc_plugin_macro = "0.9.15"
2 changes: 1 addition & 1 deletion packages/constify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-constify",
"version": "0.1.27",
"version": "0.1.28",
"description": "SWC plugin for optimization",
"main": "swc_plugin_constify.wasm",
"scripts": {
Expand Down
20 changes: 10 additions & 10 deletions packages/constify/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ edition = "2021"
license = "Apache-2.0"
name = "swc_constify"
repository = "https://github.com/swc-project/plugins.git"
version = "0.22.0"
version = "0.23.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tracing = { version = "0.1.37" }
rustc-hash = "1.1.0"

swc_common = "0.33.0"
swc_ecma_ast = "0.110.0"
swc_ecma_utils = "0.124.4"
swc_ecma_visit = "0.96.0"
swc_atoms = "0.6.0"
swc_common = "0.33.8"
swc_ecma_ast = "0.110.9"
swc_ecma_utils = "0.124.27"
swc_ecma_visit = "0.96.9"
swc_atoms = "0.6.4"
once_cell = "1.18.0"


[dev-dependencies]
serde_json = "1"
swc_ecma_parser = "0.141.1"
swc_ecma_transforms_base = "0.134.4"
swc_ecma_transforms_testing = "0.137.4"
testing = "0.35.0"
swc_ecma_parser = "0.141.22"
swc_ecma_transforms_base = "0.134.31"
swc_ecma_transforms_testing = "0.137.33"
testing = "0.35.10"
12 changes: 6 additions & 6 deletions packages/emotion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
serde = "1"
serde_json = "1.0.79"
swc_common = { version = "0.33.0", features = ["concurrent"] }
swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] }
swc_ecma_ast = "0.110.0"
swc_ecma_utils = "0.124.4"
swc_ecma_visit = "0.96.0"
swc_common = { version = "0.33.8", features = ["concurrent"] }
swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] }
swc_ecma_ast = "0.110.9"
swc_ecma_utils = "0.124.27"
swc_ecma_visit = "0.96.9"
swc_emotion = { path = "./transform" }
swc_plugin_macro = "0.9.15"
swc_plugin_proxy = "0.39.0"
swc_plugin_proxy = "0.39.9"
tracing = { version = "0.1.37", features = ["release_max_level_off"] }
2 changes: 1 addition & 1 deletion packages/emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-emotion",
"version": "2.5.97",
"version": "2.5.98",
"description": "SWC plugin for emotion css-in-js library",
"main": "swc_plugin_emotion.wasm",
"scripts": {
Expand Down
22 changes: 11 additions & 11 deletions packages/emotion/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "swc_emotion"
repository = "https://github.com/swc-project/plugins.git"
version = "0.58.0"
version = "0.59.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -18,18 +18,18 @@ radix_fmt = "1"
regex = "1.5"
serde = "1"
sourcemap = "6.0.1"
swc_atoms = "0.6.0"
swc_common = "0.33.0"
swc_ecma_ast = "0.110.0"
swc_ecma_codegen = "0.146.1"
swc_ecma_utils = "0.124.4"
swc_ecma_visit = "0.96.0"
swc_atoms = "0.6.4"
swc_common = "0.33.8"
swc_ecma_ast = "0.110.9"
swc_ecma_codegen = "0.146.25"
swc_ecma_utils = "0.124.27"
swc_ecma_visit = "0.96.9"
swc_trace_macro = "0.1.3"
tracing = { version = "0.1.37" }

[dev-dependencies]
serde_json = "1"
swc_ecma_parser = "0.141.1"
swc_ecma_transforms_react = "0.180.5"
swc_ecma_transforms_testing = "0.137.4"
testing = "0.35.0"
swc_ecma_parser = "0.141.22"
swc_ecma_transforms_react = "0.180.40"
swc_ecma_transforms_testing = "0.137.33"
testing = "0.35.10"
10 changes: 5 additions & 5 deletions packages/jest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
phf = { version = "0.10.0", features = ["macros"] }
serde = { version = "1.0.130", features = ["derive"] }
swc_common = { version = "0.33.0", features = ["concurrent"] }
swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] }
swc_ecma_ast = "0.110.0"
swc_ecma_utils = "0.124.4"
swc_ecma_visit = "0.96.0"
swc_common = { version = "0.33.8", features = ["concurrent"] }
swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] }
swc_ecma_ast = "0.110.9"
swc_ecma_utils = "0.124.27"
swc_ecma_visit = "0.96.9"
swc_plugin_macro = "0.9.15"
tracing = { version = "0.1.37", features = ["release_max_level_off"] }
2 changes: 1 addition & 1 deletion packages/jest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-jest",
"version": "1.5.97",
"version": "1.5.98",
"description": "SWC plugin for jest",
"main": "swc_plugin_jest.wasm",
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions packages/loadable-components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ crate-type = ["cdylib", "rlib"]
once_cell = "1.13.1"
regex = "1.6.0"
serde_json = "1.0.79"
swc_common = { version = "0.33.0", features = ["concurrent"] }
swc_core = { version = "0.86.1", features = ["ecma_quote", "ecma_plugin_transform"] }
swc_ecma_ast = "0.110.0"
swc_ecma_utils = "0.124.4"
swc_ecma_visit = "0.96.0"
swc_common = { version = "0.33.8", features = ["concurrent"] }
swc_core = { version = "0.86.55", features = ["ecma_quote", "ecma_plugin_transform"] }
swc_ecma_ast = "0.110.9"
swc_ecma_utils = "0.124.27"
swc_ecma_visit = "0.96.9"
swc_plugin_macro = "0.9.15"
swc_plugin_proxy = "0.39.0"
swc_plugin_proxy = "0.39.9"
tracing = { version = "0.1.37", features = ["release_max_level_off"] }

[dev-dependencies]
testing = "0.35.0"
testing = "0.35.10"
2 changes: 1 addition & 1 deletion packages/loadable-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-loadable-components",
"version": "0.3.97",
"version": "0.3.98",
"description": "SWC plugin for `@loadable/components`",
"main": "swc_plugin_loadable_components.wasm",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ const load = {
chunkName () {
return "moment";
},
isReady (props1) {
const key1 = this.resolve(props1);
if (this.resolved[key1] !== true) {
isReady (props) {
const key = this.resolve(props);
if (this.resolved[key] !== true) {
return false;
}
if (typeof __webpack_modules__ !== 'undefined') {
return !!__webpack_modules__[key1];
return !!__webpack_modules__[key];
}
return false;
},
importAsync: /* IMPORTANT! */ ()=>import(/*webpackChunkName: "moment"*/ 'moment'),
requireAsync (props1) {
const key1 = this.resolve(props1);
this.resolved[key1] = false;
return this.importAsync(props1).then((resolved1)=>{
this.resolved[key1] = true;
return resolved1;
requireAsync (props) {
const key = this.resolve(props);
this.resolved[key] = false;
return this.importAsync(props).then((resolved)=>{
this.resolved[key] = true;
return resolved;
});
},
requireSync (props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ const load = {
chunkName () {
return "moment";
},
isReady (props1) {
const key1 = this.resolve(props1);
if (this.resolved[key1] !== true) {
isReady (props) {
const key = this.resolve(props);
if (this.resolved[key] !== true) {
return false;
}
if (typeof __webpack_modules__ !== 'undefined') {
return !!__webpack_modules__[key1];
return !!__webpack_modules__[key];
}
return false;
},
importAsync: ()=>import(/*webpackChunkName: "moment"*/ 'moment'),
requireAsync (props1) {
const key1 = this.resolve(props1);
this.resolved[key1] = false;
return this.importAsync(props1).then((resolved1)=>{
this.resolved[key1] = true;
return resolved1;
requireAsync (props) {
const key = this.resolve(props);
this.resolved[key] = false;
return this.importAsync(props).then((resolved)=>{
this.resolved[key] = true;
return resolved;
});
},
requireSync (props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ const load = {
chunkName () {
return "moment";
},
isReady (props1) {
const key1 = this.resolve(props1);
if (this.resolved[key1] !== true) {
isReady (props) {
const key = this.resolve(props);
if (this.resolved[key] !== true) {
return false;
}
if (typeof __webpack_modules__ !== 'undefined') {
return !!__webpack_modules__[key1];
return !!__webpack_modules__[key];
}
return false;
},
importAsync: function() {
return import(/*webpackChunkName: "moment"*/ 'moment');
},
requireAsync (props1) {
const key1 = this.resolve(props1);
this.resolved[key1] = false;
return this.importAsync(props1).then((resolved1)=>{
this.resolved[key1] = true;
return resolved1;
requireAsync (props) {
const key = this.resolve(props);
this.resolved[key] = false;
return this.importAsync(props).then((resolved)=>{
this.resolved[key] = true;
return resolved;
});
},
requireSync (props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ const obj = {
chunkName () {
return "moment";
},
isReady (props1) {
const key1 = this.resolve(props1);
if (this.resolved[key1] !== true) {
isReady (props) {
const key = this.resolve(props);
if (this.resolved[key] !== true) {
return false;
}
if (typeof __webpack_modules__ !== 'undefined') {
return !!__webpack_modules__[key1];
return !!__webpack_modules__[key];
}
return false;
},
importAsync: function() {
return import(/*webpackChunkName: "moment"*/ 'moment');
},
requireAsync (props1) {
const key1 = this.resolve(props1);
this.resolved[key1] = false;
return this.importAsync(props1).then((resolved1)=>{
this.resolved[key1] = true;
return resolved1;
requireAsync (props) {
const key = this.resolve(props);
this.resolved[key] = false;
return this.importAsync(props).then((resolved)=>{
this.resolved[key] = true;
return resolved;
});
},
requireSync (props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
loadable({
resolved: {},
chunkName ({ foo: foo1 }) {
return `${foo1}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-");
chunkName ({ foo }) {
return `${foo}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-");
},
isReady (props1) {
const key1 = this.resolve(props1);
if (this.resolved[key1] !== true) {
isReady (props) {
const key = this.resolve(props);
if (this.resolved[key] !== true) {
return false;
}
if (typeof __webpack_modules__ !== 'undefined') {
return !!__webpack_modules__[key1];
return !!__webpack_modules__[key];
}
return false;
},
importAsync: ({ foo: foo1 })=>import(/*webpackChunkName: "[request]"*/ `./${foo1}`),
requireAsync (props1) {
const key1 = this.resolve(props1);
this.resolved[key1] = false;
return this.importAsync(props1).then((resolved1)=>{
this.resolved[key1] = true;
return resolved1;
importAsync: ({ foo })=>import(/*webpackChunkName: "[request]"*/ `./${foo}`),
requireAsync (props) {
const key = this.resolve(props);
this.resolved[key] = false;
return this.importAsync(props).then((resolved)=>{
this.resolved[key] = true;
return resolved;
});
},
requireSync (props) {
Expand All @@ -29,7 +29,7 @@ loadable({
}
return eval('module.require')(id);
},
resolve ({ foo }) {
resolve ({ foo }) {
if (require.resolveWeak) {
return require.resolveWeak(`./${foo}`);
}
Expand Down
Loading

0 comments on commit 08d03b9

Please sign in to comment.