fix: adjusts swc loader to only exclude non ts/tsx files - #2888 (#2907)

This commit is contained in:
Jarrod Flesch
2023-06-26 13:53:08 -04:00
committed by GitHub
parent f627277479
commit a2d9ef3ca6

View File

@@ -19,7 +19,7 @@ export default (config: SanitizedConfig): Configuration => ({
rules: [
{
test: /\.(t|j)sx?$/,
exclude: /node_modules/,
exclude: /\/node_modules\/(?!.+\.tsx?$).*$/,
use: [
{
loader: require.resolve('swc-loader'),