awesome-typescript-loader
awesome-typescript-loader copied to clipboard
"noEmit": true with configFileName doesn't work
I use storybook,
but want to provide different tsconfig.json
to storybook.
So- I add this options to <ProjectRoot>/.storybook/webpack.config.js
storybookBaseConfig.module.rules.push({
test: /\.tsx?$/,
loader: 'awesome-typescript-loader',
include: resolvePath('src'),
exclude: /node_modules/,
options: {
configFileName: '.storybook/tsconfig.json',
}
})
Even this new <ProjectRoot>/.storybook/tsconfig.json
has "noEmit": true
,
when webpack's hot module replacement rebuild the codes, It emits the js files.
When I add "noEmit": true
on the original tsconfig.json which is on <ProjectRoot>/tsconfig.json
now webpack does not emit js files.
shortly: at-loader doesn't seems to use provided configFile's noEmit options. it loads and use the options from <ProjectRoot>/tsconfig.json
I found this code instance.ts#L283 added from commit 16574fe507b4435f9545e697cfdf9c8e03688b87