You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {object} [options] See https://github.com/s-panferov/awesome-typescript-loader#loader-options
* @return {Function}
*/
function typescript(options = {}) {
return (context, util) =>
util.merge({
resolve: {
extensions: ['.ts', '.tsx']
},
module: {
rules: [
Object.assign(
{
test: /\.(ts|tsx)$/,
use: [
{
loader: 'awesome-typescript-loader',
options
}
]
},
context.match
)
]
},
plugins: [
new CheckerPlugin(),
new TsConfigPathsPlugin({ tsconfig: options.configFileName, compiler: options.compiler }) // This hooks into webpacks module resolution, configure via tsconfig.json