Files
tsgo/testdata/tests/cases/compiler/contentMapperDiagnostics.ts
2026-08-19 20:30:48 +00:00

27 lines
608 B
TypeScript

// @runExternalCode: true
// @Filename: /tsconfig.json
{
"compilerOptions": {
"target": "es2020",
"module": "esnext",
"moduleResolution": "bundler",
"strict": true
},
"contentMappers": [
{ "package": "mapper", "extensions": [".box"] }
]
}
// @Filename: /node_modules/mapper/package.json
{
"name": "mapper",
"version": "1.0.0",
"typescript": { "contentMapper": { "exec": ["compiler-test-mapper"], "compilerOptions": ["target", "jsx"] } }
}
// @Filename: /widget.box
export const count: number = "not a number";
export const label: string = #{target};
export const broken = #{unterminated;