-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modification Caused due to new Prettier Rules
- Loading branch information
1 parent
5fae0fb
commit a9e81df
Showing
28 changed files
with
740 additions
and
712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
"arrowParens": "avoid", | ||
"semi": false, | ||
"react/jsx-max-props-per-line": [1, { "when": "always" }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => { | ||
if (stage === 'build-html') { | ||
actions.setWebpackConfig({ | ||
// Don't bundle modules that reference browser globals such as `window` and `IDBIndex` during SSR. | ||
// See: https://github.com/gatsbyjs/gatsby/issues/17725 | ||
externals: getConfig().externals.concat(function(_context, request, callback) { | ||
// Exclude bundling firebase* and react-firebase* | ||
// These are instead required at runtime. | ||
if (/^@?(react-)?firebase(.*)/.test(request)) { | ||
console.log('Excluding bundling of: ' + request); | ||
return callback(null, 'umd ' + request); | ||
} | ||
callback(); | ||
}), | ||
}); | ||
} | ||
}; | ||
if (stage === 'build-html') { | ||
actions.setWebpackConfig({ | ||
// Don't bundle modules that reference browser globals such as `window` and `IDBIndex` during SSR. | ||
// See: https://github.com/gatsbyjs/gatsby/issues/17725 | ||
externals: getConfig().externals.concat(function ( | ||
_context, | ||
request, | ||
callback | ||
) { | ||
// Exclude bundling firebase* and react-firebase* | ||
// These are instead required at runtime. | ||
if (/^@?(react-)?firebase(.*)/.test(request)) { | ||
console.log('Excluding bundling of: ' + request) | ||
return callback(null, 'umd ' + request) | ||
} | ||
callback() | ||
}), | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.