Skip to content

Commit

Permalink
Revert "build(cargo): bump up swc_core, turbopack (#43652)"
Browse files Browse the repository at this point in the history
This reverts commit f144c39.
  • Loading branch information
ijjk committed Dec 8, 2022
1 parent 05e45eb commit 75fc91b
Show file tree
Hide file tree
Showing 29 changed files with 405 additions and 462 deletions.
514 changes: 281 additions & 233 deletions packages/next-swc/Cargo.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions packages/next-swc/crates/core/Cargo.toml
Expand Up @@ -19,10 +19,10 @@ pathdiff = "0.2.0"
regex = "1.5"
serde = "1"
serde_json = "1"
swc_emotion = "0.28.4"
styled_components = "0.52.8"
styled_jsx = "0.29.8"
modularize_imports = "0.25.8"
swc_emotion = "0.28.2"
styled_components = "0.52.5"
styled_jsx = "0.29.5"
modularize_imports = "0.25.5"
tracing = { version = "0.1.37", features = ["release_max_level_info"] }

swc_core = { features = [
Expand All @@ -42,9 +42,9 @@ swc_core = { features = [
"ecma_parser_typescript",
"cached",
"base"
], version = "0.45.4" }
], version = "0.43.23" }

[dev-dependencies]
swc_core = { features = ["testing_transform"], version = "0.45.4" }
swc_core = { features = ["testing_transform"], version = "0.43.23" }
testing = "0.31.14"
walkdir = "2.3.2"
@@ -1,7 +1,6 @@

x next/dynamic requires at least one argument
,-[input.js:2:1]
2 |
,-[input.js:3:1]
3 | const DynamicComponent = dynamic()
: ^^^^^^^
`----
@@ -1,9 +1,7 @@

x next/dynamic options must be an object literal.
| Read more: https://nextjs.org/docs/messages/invalid-dynamic-options-type
,-[input.js:3:1]
3 | const options = { loading: () => <p>...</p>, ssr: false }
,-[input.js:4:1]
4 | const DynamicComponentWithCustomLoading = dynamic(
: ^^^^^^^
5 | () => import('../components/hello'),
`----
@@ -1,8 +1,6 @@

x next/dynamic only accepts 2 arguments
,-[input.js:2:1]
2 |
,-[input.js:3:1]
3 | const DynamicComponentWithCustomLoading = dynamic(
: ^^^^^^^
4 | () => import('../components/hello'),
`----
@@ -1,15 +1,12 @@

x Font loader calls must be assigned to a const
,-[input.js:3:1]
3 |
,-[input.js:4:1]
4 | export let firaCode = Abel()
: ^^^^^^^^^^^^^^^^^^^^^
5 | export var inter = Inter()
`----

x Font loader calls must be assigned to a const
,-[input.js:4:1]
4 | export let firaCode = Abel()
,-[input.js:5:1]
5 | export var inter = Inter()
: ^^^^^^^^^^^^^^^^^^^
`----
@@ -1,15 +1,13 @@

x Font loader calls must be assigned to a const
,-[input.js:3:1]
3 | var i = 10
,-[input.js:4:1]
4 | ,-> var inter1 = Inter({
5 | | variant: '400',
6 | `-> })
`----

x Font loader calls must be assigned to a const
,-[input.js:8:1]
8 | var i2 = 20
,-[input.js:9:1]
9 | ,-> let inter2 = Inter({
10 | | variant: '400',
11 | `-> })
Expand Down
@@ -1,16 +1,12 @@

x Font loader calls must be assigned to an identifier
,-[input.js:2:1]
2 |
,-[input.js:3:1]
3 | const { a } = Inter({
: ^^^^^
4 | variant: '400',
`----

x Font loader calls must be assigned to an identifier
,-[input.js:6:1]
6 |
,-[input.js:7:1]
7 | const [b] = Inter({
: ^^^
8 | variant: '400',
`----
@@ -1,28 +1,24 @@

x Unexpected object key type
,-[input.js:3:1]
3 | const a = fn({ 10: 'hello' })
,-[input.js:4:1]
4 | const a = ABeeZee({ 10: 'hello' })
: ^^
`----

x Font loader values must be explicitly written literals.
,-[input.js:6:1]
6 | const a = fn({ variant: [i1] })
,-[input.js:7:1]
7 | const a = ABeeZee({ variant: [i1] })
: ^^
`----

x Font loader values must be explicitly written literals.
,-[input.js:9:1]
9 | const a = fn({ variant: () => {} })
,-[input.js:10:1]
10 | const a = ABeeZee({ variant: () => {} })
: ^^^^^^^^
`----

x Unexpected spread
,-[input.js:12:1]
12 | const a = fn({ ...{} })
,-[input.js:13:1]
13 | const a = ABeeZee({ ...{} })
: ^^^
`----
@@ -1,14 +1,12 @@

x Font loaders don't accept spreads
,-[input.js:3:1]
3 | const a = fn(...{}, ...[])
,-[input.js:4:1]
4 | const inter = Inter(...{}, ...[])
: ^^^
`----

x Font loaders don't accept spreads
,-[input.js:3:1]
3 | const a = fn(...{}, ...[])
,-[input.js:4:1]
4 | const inter = Inter(...{}, ...[])
: ^^^
`----
@@ -1,38 +1,30 @@

x Font loaders must be called and assigned to a const in the module scope
,-[input.js:2:1]
2 |
,-[input.js:3:1]
3 | Aladin({})
: ^^^^^^
`----

x Font loaders must be called and assigned to a const in the module scope
,-[input.js:5:1]
5 | let b
,-[input.js:6:1]
6 | const a = (b = Aladin({ variant: '400' }))
: ^^^^^^
`----

x Font loaders must be called and assigned to a const in the module scope
,-[input.js:8:1]
8 | function Hello() {
9 | const a = Aladin({
: ^^^^^^
10 | variant: '400',
`----
,-[input.js:9:3]
9 | const a = Aladin({
: ^^^^^^
`----

x Font loaders must be called and assigned to a const in the module scope
,-[input.js:15:1]
15 | constructor() {
16 | Aladin({
: ^^^^^^
17 | variant: '400',
,-[input.js:16:5]
16 | Aladin({
: ^^^^^^
`----

x Font loaders must be called and assigned to a const in the module scope
,-[input.js:22:1]
22 | {
23 | Aladin({})
: ^^^^^^
24 | }
,-[input.js:23:3]
23 | Aladin({})
: ^^^^^^
`----
@@ -1,7 +1,6 @@

x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | export async function getStaticPaths() {}
,-[input.js:2:1]
2 | export const getServerSideProps = function getServerSideProps() {}
: ^^^^^^^^^^^^^^^^^^
`----
@@ -1,7 +1,6 @@

x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | const getStaticProps = async () => {}
2 | export { a as getServerSideProps }
,-[input.js:2:1]
2 | export { a as getServerSideProps }
: ^^^^^^^^^^^^^^^^^^
`----
@@ -1,7 +1,6 @@

x You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps
,-[input.js:1:1]
1 | export { a as getServerSideProps } from './input'
,-[input.js:2:1]
2 | export { getStaticPaths } from 'a'
: ^^^^^^^^^^^^^^
`----
Expand Up @@ -3,5 +3,4 @@
,-[input.js:1:1]
1 | export function getServerSideProps (){
: ^^^^^^^^^^^^^^^^^^
2 | }
`----
Expand Up @@ -3,5 +3,4 @@
,-[input.js:1:1]
1 | export function getStaticProps (){
: ^^^^^^^^^^^^^^
2 | }
`----
@@ -1,7 +1,6 @@

x NEXT_RSC_ERR_CLIENT_IMPORT: server-only
,-[input.js:8:1]
8 |
,-[input.js:9:1]
9 | import "server-only"
: ^^^^^^^^^^^^^^^^^^^^
`----
@@ -1,7 +1,6 @@

x NEXT_RSC_ERR_CLIENT_DIRECTIVE
,-[input.js:2:1]
2 |
,-[input.js:3:1]
3 | "use client"
: ^^^^^^^^^^^^
`----
@@ -1,7 +1,6 @@

x NEXT_RSC_ERR_SERVER_IMPORT: client-only
,-[input.js:8:1]
8 |
,-[input.js:9:1]
9 | import "client-only"
: ^^^^^^^^^^^^^^^^^^^^
`----
Expand Up @@ -3,5 +3,4 @@
,-[input.js:1:1]
1 | export function getServerSideProps (){
: ^^^^^^^^^^^^^^^^^^
2 | }
`----
Expand Up @@ -3,5 +3,4 @@
,-[input.js:1:1]
1 | export function getStaticProps (){
: ^^^^^^^^^^^^^^
2 | }
`----

0 comments on commit 75fc91b

Please sign in to comment.