Open
Description
Expected Behaviour
Output file is bundled correctly.
Actual Behaviour
The output file index.js only contains the 2 lines of the compiled entry file without bundling anything.
(()=>{"use strict"
simpleWrap(mainComponent,void 0)})()
Steps to Reproduce the Problem
Import anything and use it in export default,
Then add "satisfies Readonly" or satisfies any other generic type at the end
import mainComponent from '@/mainComponent';
import simpleWrap from '@/simpleWrap';
export default simpleWrap(
mainComponent,
undefined,
) satisfies Readonly<unknown>;
This only happens when export default satisfies a generic type, "satisfies unknown" or "satisfies () => void" work correctly.
Dependencies:
"ts-loader": "^9.3.1",
"typescript": "^4.9.1-beta",
"webpack": "^5.74.0",
"webpack-bundle-analyzer": "^4.6.1",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.10.1",
Location of a Minimal Repository that Demonstrates the Issue.
Metadata
Metadata
Assignees
Labels
No labels