File tree 1 file changed +23
-13
lines changed
1 file changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const SENTRY_WEBPACK_PROXY_PORT = env.SENTRY_WEBPACK_PROXY_PORT;
30
30
const USE_HOT_MODULE_RELOAD =
31
31
! IS_PRODUCTION && SENTRY_BACKEND_PORT && SENTRY_WEBPACK_PROXY_PORT ;
32
32
const NO_DEV_SERVER = env . NO_DEV_SERVER ;
33
+ const IS_CI = ! ! env . CI || ! ! env . TRAVIS ;
33
34
34
35
// Deploy previews are built using netlify. We can check if we're in netlifys
35
36
// build process by checking the existence of the PULL_REQUEST env var.
@@ -224,16 +225,21 @@ let appConfig = {
224
225
include : [ staticPrefix ] ,
225
226
exclude : / ( v e n d o r | n o d e _ m o d u l e s | d i s t ) / ,
226
227
use : [
227
- {
228
- loader : 'babel-loader' ,
229
- options : babelOptions ,
230
- } ,
231
- {
232
- loader : 'ts-loader' ,
233
- options : {
234
- transpileOnly : true ,
235
- } ,
236
- } ,
228
+ ...( ! IS_CI
229
+ ? [
230
+ {
231
+ loader : 'babel-loader' ,
232
+ options : babelOptions ,
233
+ } ,
234
+ ]
235
+ : [
236
+ {
237
+ loader : 'ts-loader' ,
238
+ options : {
239
+ transpileOnly : false ,
240
+ } ,
241
+ } ,
242
+ ] ) ,
237
243
] ,
238
244
} ,
239
245
{
@@ -318,9 +324,13 @@ let appConfig = {
318
324
*/
319
325
new FixStyleOnlyEntriesPlugin ( ) ,
320
326
321
- new ForkTsCheckerWebpackPlugin ( {
322
- tsconfig : path . resolve ( __dirname , './tsconfig.json' ) ,
323
- } ) ,
327
+ ...( ! IS_CI
328
+ ? [
329
+ new ForkTsCheckerWebpackPlugin ( {
330
+ tsconfig : path . resolve ( __dirname , './tsconfig.json' ) ,
331
+ } ) ,
332
+ ]
333
+ : [ ] ) ,
324
334
325
335
...localeRestrictionPlugins ,
326
336
] ,
You can’t perform that action at this time.
0 commit comments