diff --git a/packages/netlify-cms/webpack.config.js b/packages/netlify-cms/webpack.config.js index fc56c5dd..6bb42d81 100644 --- a/packages/netlify-cms/webpack.config.js +++ b/packages/netlify-cms/webpack.config.js @@ -10,7 +10,7 @@ const baseConfig = { context: path.join(__dirname, 'src'), entry: './index.js', plugins: [ - ...coreWebpackConfig.plugins.filter(plugin => !plugin instanceof webpack.DefinePlugin), + ...coreWebpackConfig.plugins.filter(plugin => !(plugin instanceof webpack.DefinePlugin)), new webpack.DefinePlugin({ NETLIFY_CMS_VERSION: JSON.stringify(`${pkg.version}${isProduction ? '' : '-dev'}`), NETLIFY_CMS_CORE_VERSION: null,