Add TypeScript support for React components
This commit is contained in:
@@ -11,7 +11,12 @@ module.exports = merge(common, {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
test: /\.(js|jsx)$/,
|
||||
enforce: 'pre',
|
||||
use: ['source-map-loader']
|
||||
},
|
||||
{
|
||||
test: /\.(ts|tsx)$/,
|
||||
enforce: 'pre',
|
||||
use: ['source-map-loader']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user