Skip to content

Instantly share code, notes, and snippets.

@MadaraUchiha
Last active February 22, 2018 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadaraUchiha/9e7601d45f99fbca8074e97795933b1d to your computer and use it in GitHub Desktop.
Save MadaraUchiha/9e7601d45f99fbca8074e97795933b1d to your computer and use it in GitHub Desktop.
// This is the interesting bit
module: {
rules: [
{
use: [
{
loader: 'awesome-typescript-loader',
options: {
transpileOnly: true, // Note, this means you ignore errors.
// Due to legacy, we ignore errors in TypeScript files too, DON'T DO THIS FOR TS FILES
useCache: true,
configFileName: process.env.TS_CONFIG_CODE || 'tsconfig.json'
}
}
],
exclude: /(node_modules|bower_components)/,
test: /((\.tsx?)|(\.js))$/
}
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment