Skip to content

Commit 0d60e8e

Browse files
authored
Merge branch 'master' into blog/meet-the-maintainer-aabid-sofi
2 parents 2bbdfdd + f2fd320 commit 0d60e8e

84 files changed

Lines changed: 11800 additions & 8424 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
GATSBY_GRAPHQL_IDE=playground
2+
# Reduce concurrency to lower memory use during develop
3+
GATSBY_CPU_COUNT=2
4+
SHARP_CONCURRENCY=2

.node-options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node --max-old-space-size=8192

gatsby-config.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ module.exports = {
135135
) {
136136
nodes {
137137
body
138-
html
139138
frontmatter {
140139
title
141140
author
@@ -182,7 +181,6 @@ module.exports = {
182181
) {
183182
nodes {
184183
body
185-
html
186184
frontmatter {
187185
title
188186
author
@@ -228,7 +226,6 @@ module.exports = {
228226
) {
229227
nodes {
230228
body
231-
html
232229
frontmatter {
233230
title
234231
author
@@ -277,7 +274,6 @@ module.exports = {
277274
) {
278275
nodes {
279276
body
280-
html
281277
frontmatter {
282278
title
283279
author
@@ -337,7 +333,6 @@ module.exports = {
337333
) {
338334
nodes {
339335
body
340-
html
341336
frontmatter {
342337
title
343338
author
@@ -388,7 +383,6 @@ module.exports = {
388383
) {
389384
nodes {
390385
body
391-
html
392386
frontmatter {
393387
title
394388
author
@@ -435,7 +429,6 @@ module.exports = {
435429
) {
436430
nodes {
437431
body
438-
html
439432
frontmatter {
440433
title
441434
author
@@ -474,10 +467,6 @@ module.exports = {
474467
resolve: "gatsby-plugin-mdx",
475468
options: {
476469
extensions: [".mdx", ".md"],
477-
mdxOptions: {
478-
remarkPlugins: [],
479-
rehypePlugins: [],
480-
},
481470
gatsbyRemarkPlugins: [],
482471
},
483472
},

gatsby-node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,10 @@ exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
10691069
},
10701070
});
10711071

1072-
if (stage === "build-javascript") {
1072+
// Reduce memory pressure by disabling sourcemaps in dev and build
1073+
if (stage === "develop" || stage === "develop-html" || stage === "build-javascript" || stage === "build-html") {
10731074
const config = getConfig();
1075+
config.devtool = false;
10741076
const miniCssExtractPlugin = config.plugins.find(
10751077
(plugin) => plugin.constructor.name === "MiniCssExtractPlugin"
10761078
);

0 commit comments

Comments
 (0)