Skip to content

Commit

Permalink
no need for plugin name, in browser requires list - migration check i…
Browse files Browse the repository at this point in the history
…s done in node env now
  • Loading branch information
pieh committed Aug 16, 2018
1 parent b2858da commit e50552b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/gatsby/src/bootstrap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ module.exports = async (args: BootstrapArgs) => {
return {
resolve: hasAPIFile(`browser`, plugin),
options: plugin.pluginOptions,
name: plugin.name,
}
}),
plugin => plugin.resolve
Expand All @@ -261,12 +260,7 @@ module.exports = async (args: BootstrapArgs) => {
plugin =>
`{
plugin: require('${plugin.resolve}'),
options: ${JSON.stringify(plugin.options)},${
process.env.NODE_ENV !== `production`
? `
name: '${plugin.name}',`
: ``
}
options: ${JSON.stringify(plugin.options)},
}`
)
.join(`,`)
Expand Down

0 comments on commit e50552b

Please sign in to comment.