Commit 8e3102cf authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

reproduction

parent f8cb26c0
import(`@/${globalThis.type}/zh-Hant/${globalThis.processedSlugPath}/page.ts`) import(`@/${globalThis.type}/${globalThis.processedSlugPath}`)
// globalThis.docs = 'docs'
// console.trace(require(`@/${globalThis.docs}/foo`))
// globalThis.foo = 'foo'
// console.trace(require(`@/docs/${globalThis.foo}`))
export default function page() { export default function page() {
return <div>hello</div> return <div>hello</div>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [ "plugins": [
{ {
...@@ -20,8 +20,7 @@ ...@@ -20,8 +20,7 @@
], ],
"paths": { "paths": {
"@/*": ["./*"], "@/*": ["./*"],
"@/docs/*": ["./docs/*"], "@/docs/*": ["./docs2/*"]
"@/learn/*": ["./learn/*"]
}, },
"strictNullChecks": true "strictNullChecks": true
}, },
...@@ -31,7 +30,8 @@ ...@@ -31,7 +30,8 @@
"**/*.tsx", "**/*.tsx",
".next/types/**/*.ts", ".next/types/**/*.ts",
"next-env.d.ts", "next-env.d.ts",
"next.config.mjs" "next.config.mjs",
".next/dev/types/**/*.ts"
], ],
"exclude": ["node_modules"] "exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment