awesome-typescript-loader
Version:
Awesome TS loader for webpack
29 lines (24 loc) • 459 B
text/typescript
import { src, webpackConfig, tsconfig, compile, expectErrors, spec, query } from './utils'
spec(__filename, async function() {
src(
'index.ts',
`
const a = {}
const b = Object.values(a);
`
)
tsconfig(
{
target: 'es2017'
},
undefined,
'./config/tsconfig.json'
)
const config = webpackConfig(
query({
configFileName: './config/tsconfig.json'
})
)
let stats = await compile(config)
expectErrors(stats, 0)
})