Answer the question
In order to leave comments, you need to log in
How does TS work?
there is a project on react, there is a webpack and babel with env
I want to hook it into the TS project.
lauder added to webpack:
test: /\.(ts|tsx)$/,
use: 'ts-loader',
Answer the question
In order to leave comments, you need to log in
npm install --save-dev [email protected]8.0.0
module: {
rules: [{
test: /\.(tsx?)|(js)$/,
exclude: /node_modules/,
loader: 'babel-loader',
}],
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question