Closed
Description
Anyone have luck webpack-5-ing with the new .mts
extension? I'm able to output from tsc -p .
fine, but through webpack I'm getting "Error: TypeScript emitted no output for .../index.mts".
Thanks!
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".mts", ".ts", ".tsx", ".js"]
},
module: {
rules: [
{
test: /(\.mts$)|(\.tsx?$)/,
use: [
{
loader: 'ts-loader',
options: {
//transpileOnly: true
compilerOptions: {
noEmit: false
}
}
}
]
}
]
}
Metadata
Metadata
Assignees
Labels
No labels