mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
9640adcc3c
For e.g. TS-to-TS Webpack transforms, don't use `as: "*.tsx"` for now.
That should ideally also work, but there is still an unrelated bug
causing that to fail.
This definitely works for now (and just retains the module type detected
by Turbopack):
```js
module.exports = {
experimental: {
turbo: {
rules: {
"*.ts": {
loaders: ["./my-loader.js"],
}
}
}
}
};
```
This came up in https://x.com/aidenybai/status/1823615893903171645
@aidenybai
Closes PACK-3194
8 lines
146 B
TypeScript
8 lines
146 B
TypeScript
export default function Root({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|