Update turbopack & swc_core (#65450)
### What? * https://github.com/vercel/turbo/pull/8101 <!-- Tobias Koppers - fix off-by-one bug while reading heaptrack files --> * https://github.com/vercel/turbo/pull/8130 <!-- Tobias Koppers - refactor memory tracking --> * https://github.com/vercel/turbo/pull/8097 <!-- Donny/강동윤 - build: Update `swc_core` to `v0.92.5` --> Update swc_core. ### Why? To keep in sync and fix styled-jsx issues ### How? Closes PACK-3042 --------- Co-authored-by: hrmny <8845940+ForsakenHarmony@users.noreply.github.com>
This commit is contained in:
parent
168d125710
commit
138e45cf56
16 changed files with 290 additions and 265 deletions
493
Cargo.lock
generated
493
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
Cargo.toml
12
Cargo.toml
|
@ -30,18 +30,18 @@ next-core = { path = "packages/next-swc/crates/next-core" }
|
|||
next-custom-transforms = { path = "packages/next-swc/crates/next-custom-transforms" }
|
||||
|
||||
# SWC crates
|
||||
swc_core = { version = "0.90.33", features = [
|
||||
swc_core = { version = "0.92.5", features = [
|
||||
"ecma_loader_lru",
|
||||
"ecma_loader_parking_lot",
|
||||
] }
|
||||
testing = { version = "0.35.22" }
|
||||
testing = { version = "0.35.24" }
|
||||
|
||||
# Turbo crates
|
||||
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240516.1" }
|
||||
turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240517.2" }
|
||||
# [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros..
|
||||
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240516.1" }
|
||||
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240517.2" }
|
||||
# [TODO]: need to refactor embed_directory! macro usage in next-core
|
||||
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240516.1" }
|
||||
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240517.2" }
|
||||
|
||||
# General Deps
|
||||
|
||||
|
@ -90,7 +90,7 @@ indoc = "2.0.0"
|
|||
itertools = "0.10.5"
|
||||
lazy_static = "1.4.0"
|
||||
log = "0.4.17"
|
||||
lightningcss = { version = "=1.0.0-alpha.54", features = [
|
||||
lightningcss = { version = "1.0.0-alpha.54", features = [
|
||||
"serde",
|
||||
"visitor",
|
||||
"into_owned",
|
||||
|
|
|
@ -38,8 +38,8 @@ turbopack-binding = { workspace = true, features = [
|
|||
] }
|
||||
# To allow quote! macro works
|
||||
swc_core = { workspace = true, features = ["ecma_quote"] }
|
||||
react_remove_properties = "0.24.7"
|
||||
remove_console = "0.25.7"
|
||||
react_remove_properties = "0.24.12"
|
||||
remove_console = "0.25.12"
|
||||
preset_env_base = "0.4.12"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "@swc/helpers/_/_class_call_check";
|
||||
import { _ as e } from "@swc/helpers/_/_sliced_to_array";
|
||||
import r from "other";
|
||||
import r from 'other';
|
||||
e(r, 1)[0];
|
||||
export var __N_SSG = !0;
|
||||
export default function t() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export default 1;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
export default 1;
|
||||
console.log("__esModule");
|
||||
Object.defineProperty({}, "__esModule", {
|
||||
console.log('__esModule');
|
||||
Object.defineProperty({}, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export default function(module) {
|
||||
module.exports = {};
|
||||
};
|
||||
export var value = "mixed-syntax-esm";
|
||||
export var value = 'mixed-syntax-esm';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function foo(module) {
|
||||
module.exports = "this is just normal assignment of scope variable";
|
||||
module.exports = 'this is just normal assignment of scope variable';
|
||||
}
|
||||
export var value = "mixed-syntax-esm";
|
||||
export var value = 'mixed-syntax-esm';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
|
||||
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
||||
import other from "other";
|
||||
import other from 'other';
|
||||
var _other = _sliced_to_array(other, 1), foo = _other[0];
|
||||
var Foo = function Foo() {
|
||||
"use strict";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
|
||||
import { useEffect } from "react";
|
||||
import { select, selectAll } from "d3-selection";
|
||||
import { useEffect } from 'react';
|
||||
import { select, selectAll } from 'd3-selection';
|
||||
export default function Home() {
|
||||
useEffect(function() {
|
||||
new MyClass();
|
||||
|
@ -14,7 +14,7 @@ export default function Home() {
|
|||
var MyClass = function MyClass() {
|
||||
"use strict";
|
||||
_class_call_check(this, MyClass);
|
||||
selectAll(".group").each(function() {
|
||||
select(this).selectAll("path");
|
||||
selectAll('.group').each(function() {
|
||||
select(this).selectAll('path');
|
||||
});
|
||||
};
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*#__PURE__*/ React.createElement("div", null, "children");
|
||||
"<>hello</>";
|
||||
'<>hello</>';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import styled from "styled-components";
|
||||
import styled from 'styled-components';
|
||||
export var foo = styled.input.withConfig({
|
||||
displayName: "input__foo",
|
||||
componentId: "sc-21a13c03-0"
|
||||
|
|
|
@ -10,7 +10,9 @@ pub fn mdx_compile_sync(value: JsString, opts: JsValue) -> Result<JsValue, JsVal
|
|||
|
||||
compile(value.as_str(), &option)
|
||||
.map(|v| serde_wasm_bindgen::to_value(&v).expect("Should able to convert to JsValue"))
|
||||
.map_err(|v| serde_wasm_bindgen::to_value(&v).expect("Should able to convert to JsValue"))
|
||||
.map_err(|v| {
|
||||
serde_wasm_bindgen::to_value(&v.to_string()).expect("Should able to convert to JsValue")
|
||||
})
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = "mdxCompile")]
|
||||
|
|
|
@ -206,7 +206,7 @@
|
|||
"@types/ws": "8.2.0",
|
||||
"@vercel/ncc": "0.34.0",
|
||||
"@vercel/nft": "0.27.1",
|
||||
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240516.1",
|
||||
"@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240517.2",
|
||||
"acorn": "8.11.3",
|
||||
"amphtml-validator": "1.0.35",
|
||||
"anser": "1.4.9",
|
||||
|
|
|
@ -1085,8 +1085,8 @@ importers:
|
|||
specifier: 0.27.1
|
||||
version: 0.27.1
|
||||
'@vercel/turbopack-ecmascript-runtime':
|
||||
specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240516.1
|
||||
version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240516.1'
|
||||
specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240517.2
|
||||
version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240517.2'
|
||||
acorn:
|
||||
specifier: 8.11.3
|
||||
version: 8.11.3
|
||||
|
@ -25782,8 +25782,8 @@ packages:
|
|||
/zwitch@2.0.4:
|
||||
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
|
||||
|
||||
'@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240516.1':
|
||||
resolution: {tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240516.1}
|
||||
'@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240517.2':
|
||||
resolution: {tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240517.2}
|
||||
name: '@vercel/turbopack-ecmascript-runtime'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
|
|
|
@ -67,7 +67,7 @@ describe('next/swc', () => {
|
|||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
||||
}
|
||||
import { useState } from "react";
|
||||
import { useState } from 'react';
|
||||
var _useState = _sliced_to_array(useState(0), 2), count = _useState[0], setCount = _useState[1];
|
||||
"
|
||||
`)
|
||||
|
@ -107,7 +107,7 @@ describe('next/swc', () => {
|
|||
if (n === "Map" || n === "Set") return Array.from(n);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
||||
}
|
||||
import { useState } from "react";
|
||||
import { useState } from 'react';
|
||||
var _useState = _to_array(useState(0)), copy = _useState.slice(0);
|
||||
"
|
||||
`)
|
||||
|
|
Loading…
Reference in a new issue