DEV Community

loading...

Discussion on: Converting a JavaScript project to Typescript, one file at a time

Collapse
hellfiresteve profile image
hellfireSteve

had to change loaders to rules in webpack.config.js:

module: {
rules: [
{ test: /.ts(x?)$/, loader: 'ts-loader' },

{ test: /.json$/, loader: 'json-loader' }
]