Skip to content

Commit

Permalink
Merge pull request #26 from JasonBoy/issue#25
Browse files Browse the repository at this point in the history
Fix non-js files error in SSR mode
  • Loading branch information
JasonBoy committed Feb 22, 2019
2 parents 2000562 + a52a965 commit 07955b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/webpack.config.ssr.js
Expand Up @@ -31,7 +31,11 @@ const webpackConfig = webpackMerge(
libraryExport: 'default',
libraryTarget: 'commonjs2',
},
externals: [nodeExternals()],
externals: [
nodeExternals({
whitelist: [/\.(?!(?:jsx?|json)$).{1,5}$/i],
}),
],
resolve: {
...utils.getWebpackResolveConfig(),
},
Expand Down

0 comments on commit 07955b2

Please sign in to comment.