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

feat(styled-jsx): Accept browsers on lightningcss mode #232

Merged
merged 29 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7c8deb8
Update swc crates
kdy1 Nov 14, 2023
81add2b
cargo lockfile
kdy1 Nov 14, 2023
721d2ca
browsers
kdy1 Nov 14, 2023
1b09db9
browers
kdy1 Nov 14, 2023
89de95b
more work
kdy1 Nov 14, 2023
2a8662f
fixed
kdy1 Nov 14, 2023
c0e1948
Fix tests
kdy1 Nov 14, 2023
ddc3a20
Bump npm package: ./packages/constify
kdy1 Nov 14, 2023
97b7e20
Bump npm package: ./packages/emotion
kdy1 Nov 14, 2023
dbd060c
Bump npm package: ./packages/jest
kdy1 Nov 14, 2023
3703163
Bump npm package: ./packages/loadable-components
kdy1 Nov 14, 2023
9eb222c
Bump npm package: ./packages/noop
kdy1 Nov 14, 2023
63c6910
Bump npm package: ./packages/react-remove-properties
kdy1 Nov 14, 2023
7ec1582
Bump npm package: ./packages/relay
kdy1 Nov 14, 2023
c99e15e
Bump npm package: ./packages/remove-console
kdy1 Nov 14, 2023
61e2e26
Bump npm package: ./packages/styled-components
kdy1 Nov 14, 2023
11c8066
Bump npm package: ./packages/styled-jsx
kdy1 Nov 14, 2023
eb6632f
Bump npm package: ./packages/swc-magic
kdy1 Nov 14, 2023
119341c
Bump npm package: ./packages/transform-imports
kdy1 Nov 14, 2023
a003df8
Bump cargo crate: modularize_imports
kdy1 Nov 14, 2023
de48357
Bump cargo crate: react_remove_properties
kdy1 Nov 14, 2023
ecb2de5
Bump cargo crate: remove_console
kdy1 Nov 14, 2023
4de2152
Bump cargo crate: styled_components
kdy1 Nov 14, 2023
82e860f
Bump cargo crate: styled_jsx
kdy1 Nov 14, 2023
20eede5
Bump cargo crate: swc_constify
kdy1 Nov 14, 2023
4af771d
Bump cargo crate: swc_emotion
kdy1 Nov 14, 2023
182fe57
Bump cargo crate: swc_magic
kdy1 Nov 14, 2023
8362883
Bump cargo crate: swc_relay
kdy1 Nov 14, 2023
e8b10d8
Update test refs
kdy1 Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading