mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-12 06:44:37 +00:00
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')
|
require.resolve('@babel/preset-typescript')
|
||||||
);
|
);
|
||||||
// additional extensions
|
// additional extensions
|
||||||
|
baseBabelLoader.test = /\.(js|ts)x?$/;
|
||||||
base.resolve.extensions.push('.ts', '.tsx');
|
base.resolve.extensions.push('.ts', '.tsx');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user