File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11import VERSION from 'common/version' ;
22
3- export const DNT = ! ! (
4- window . doNotTrack ||
5- window . navigator . doNotTrack ||
6- window . navigator . msDoNotTrack
7- ) ;
3+ export const DNT =
4+ typeof window !== 'undefined' &&
5+ ! ! (
6+ window . doNotTrack ||
7+ window . navigator . doNotTrack ||
8+ window . navigator . msDoNotTrack
9+ ) ;
810
911export function identify ( key , value ) {
1012 try {
Original file line number Diff line number Diff line change 11module . exports = {
22 presets : [
3+ '@babel/preset-env' ,
34 '@babel/preset-flow' ,
45 [
56 'babel-preset-gatsby' ,
@@ -10,4 +11,11 @@ module.exports = {
1011 } ,
1112 ] ,
1213 ] ,
14+
15+ overrides : [
16+ {
17+ test : '../common' ,
18+ presets : [ '@babel/preset-env' ] ,
19+ } ,
20+ ] ,
1321} ;
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ exports.onCreateWebpackConfig = ({
179179
180180 test : / \. j s x ? $ / ,
181181
182- // Exclude all node_modules from transpilation, except for 'swiper ' and 'dom7 '
182+ // Exclude all node_modules from transpilation, except for 'common ' and 'app '
183183 exclude : modulePath =>
184184 / n o d e _ m o d u l e s / . test ( modulePath ) &&
185185 ! / n o d e _ m o d u l e s \/ ( c o m m o n | a p p ) / . test ( modulePath ) ,
You can’t perform that action at this time.
0 commit comments