mirror of https://github.com/embarklabs/embark.git
babel-loader should process .ts, .tsx files when typescript is enabled
This commit is contained in:
parent
059635979d
commit
67347ae08e
|
@ -213,6 +213,7 @@ if (isTypeScriptEnabled) {
|
|||
require.resolve('@babel/preset-typescript')
|
||||
);
|
||||
// additional extensions
|
||||
baseBabelLoader.test = /\.(js|ts)x?$/;
|
||||
base.resolve.extensions.push('.ts', '.tsx');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue