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 11, 2021
1 parent ea2a625 commit 8f5e7b0
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 8f5e7b0

Please sign in to comment.