Skip to content

Commit

Permalink
Fix GraphQL example warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Aug 26, 2018
1 parent 89177dc commit 9c94d25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/official-storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const { DefinePlugin } = require('webpack');
const { DefinePlugin, ContextReplacementPlugin } = require('webpack');

module.exports = (baseConfig, env, defaultConfig) => ({
...defaultConfig,
Expand Down Expand Up @@ -38,5 +38,7 @@ module.exports = (baseConfig, env, defaultConfig) => ({
new DefinePlugin({
process: JSON.stringify(true),
}),
// See https://github.com/graphql/graphql-language-service/issues/111#issuecomment-306723400
new ContextReplacementPlugin(/graphql-language-service-interface[/\\]dist/, /\.js$/),
],
});

0 comments on commit 9c94d25

Please sign in to comment.