Skip to content

Commit

Permalink
Alleviate memory problem by disabling sourc maps
Browse files Browse the repository at this point in the history
  • Loading branch information
jgosmann committed Feb 25, 2023
1 parent 1a0bad2 commit 6c61db4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module.exports = {
searchUrl: `https://search.adventures.jgosmann.de`,
},
plugins: [
{
// Alleviate memory problem
// https://github.com/gatsbyjs/gatsby/issues/36899
resolve: "gatsby-plugin-no-sourcemaps",
},
{
resolve: `gatsby-plugin-sass`,
options: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"gatsby-plugin-image": "^3.6.0",
"gatsby-plugin-manifest": "^5.6.0",
"gatsby-plugin-mdx": "^5.6.0",
"gatsby-plugin-no-sourcemaps": "^5.7.0",
"gatsby-plugin-sass": "^6.6.0",
"gatsby-plugin-sharp": "^5.6.0",
"gatsby-source-filesystem": "^5.6.0",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12541,6 +12541,13 @@ gatsby-plugin-mdx@^5.6.0:
unist-util-visit "^4.1.1"
vfile "^5.3.6"

gatsby-plugin-no-sourcemaps@^5.7.0:
version "5.7.0"
resolved "https://registry.yarnpkg.com/gatsby-plugin-no-sourcemaps/-/gatsby-plugin-no-sourcemaps-5.7.0.tgz#a0809957dc12e9baa397dd80019433555d307d7c"
integrity sha512-cxIZG8f4qXSHi6ziplehHB0pznxu82qvsR4C63dDxm/0NSqNinNeW0qhvetcdyfMJcWurS+siaIrsgJr+SpmPw==
dependencies:
"@babel/runtime" "^7.20.13"

gatsby-plugin-page-creator@^5.7.0:
version "5.7.0"
resolved "https://registry.yarnpkg.com/gatsby-plugin-page-creator/-/gatsby-plugin-page-creator-5.7.0.tgz#0544fb6696b30523d5f7270fa767c653459f3d98"
Expand Down

0 comments on commit 6c61db4

Please sign in to comment.