Commit 97264672 authored by devjiwonchoi's avatar devjiwonchoi

test: [breaking] update tsconfig-extends and import-js-extensions

parent 0c66760d
......@@ -3,8 +3,8 @@ import cjs from './fixtures/cjs.cjs'
import mjs from './fixtures/mjs.mjs'
import cts from './fixtures/cts.cts'
import mts from './fixtures/mts.mts'
import ts from './fixtures/ts'
import js from './fixtures/js-esm'
import ts from './fixtures/ts.ts'
import js from './fixtures/js-esm.js'
const nextConfig: NextConfig = {
env: {
......
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
......
import type { NextConfig } from 'next'
import { foo } from '@/foo.ts'
import { bar } from 'bar.ts'
const nextConfig: NextConfig = {
env: {
foo,
bar,
},
}
export default nextConfig
export default function Root({ children }: { children: React.ReactNode }) {
return (
<html>
<body>{children}</body>
</html>
)
}
export default function Page() {
return <p>{`${process.env.foo + process.env.bar}`}</p>
}
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
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