mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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
10 lines
126 B
TypeScript
10 lines
126 B
TypeScript
import rsc from './file.test-file'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div>
|
|
<p>{rsc}</p>
|
|
</div>
|
|
)
|
|
}
|