Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Dec 5, 2022
1 parent f447bd3 commit 2a59d42
Show file tree
Hide file tree
Showing 25 changed files with 175 additions and 127 deletions.
69 changes: 23 additions & 46 deletions packages/next-swc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 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.3"
styled_components = "0.52.7"
styled_jsx = "0.29.7"
modularize_imports = "0.25.7"
swc_emotion = "=0.28.3"
styled_components = "=0.52.7"
styled_jsx = "=0.29.7"
modularize_imports = "=0.25.7"
tracing = { version = "0.1.37", features = ["release_max_level_info"] }

swc_core = { features = [
Expand Down
@@ -1,6 +1,7 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 comments on commit 2a59d42

Please sign in to comment.