File tree 1 file changed +9
-17
lines changed
1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,14 @@ const cacheGroups = {
185
185
} ;
186
186
187
187
const babelOptions = { ...babelConfig , cacheDirectory : true } ;
188
+ const babelLoaderConfig = { loader : 'babel-loader' , options : babelOptions } ;
189
+
190
+ const tsLoaderConfig = {
191
+ loader : 'ts-loader' ,
192
+ options : {
193
+ transpileOnly : false ,
194
+ } ,
195
+ } ;
188
196
189
197
/**
190
198
* Main Webpack config for Sentry React SPA.
@@ -225,23 +233,7 @@ let appConfig = {
225
233
test : / \. t s x ? $ / ,
226
234
include : [ staticPrefix ] ,
227
235
exclude : / ( v e n d o r | n o d e _ m o d u l e s | d i s t ) / ,
228
- use : [
229
- ...( ! IS_CI
230
- ? [
231
- {
232
- loader : 'babel-loader' ,
233
- options : babelOptions ,
234
- } ,
235
- ]
236
- : [
237
- {
238
- loader : 'ts-loader' ,
239
- options : {
240
- transpileOnly : false ,
241
- } ,
242
- } ,
243
- ] ) ,
244
- ] ,
236
+ use : [ ! IS_CI ? babelLoaderConfig : tsLoaderConfig ] ,
245
237
} ,
246
238
{
247
239
test : / \. p o $ / ,
You can’t perform that action at this time.
0 commit comments