Skip to content

Commit

Permalink
revert bundle-webpack changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Oct 12, 2021
1 parent ea78a0e commit bb94599
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/gatsby/src/schema/graphql-engine/bundle-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function createGraphqlEngineBundle(

const compiler = webpack({
name: `Query Engine`,
// mode: `production`,
mode: `none`,
entry: path.join(__dirname, `entry.js`),
output: {
Expand Down Expand Up @@ -100,9 +101,6 @@ export async function createGraphqlEngineBundle(
process.env.GATSBY_WEBPACK_LOGGING?.includes(`query-engine`) &&
new WebpackLoggingPlugin(rootDir, reporter, isVerbose),
].filter(Boolean) as Array<webpack.WebpackPluginInstance>,
optimization: {
minimize: false,
},
})

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit bb94599

Please sign in to comment.