We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d5a427 commit 6181201Copy full SHA for 6181201
docs/documentation/stories/universal-rendering.md
@@ -312,7 +312,7 @@ const webpack = require('webpack');
312
313
module.exports = {
314
entry: { server: './server.ts' },
315
- resolve: { extensions: ['.ts', '.js'] },
+ resolve: { extensions: ['.js', '.ts'] },
316
target: 'node',
317
// this makes sure we include node_modules and other 3rd party libraries
318
externals: [/(node_modules|main\..*\.js)/],
@@ -336,6 +336,7 @@ module.exports = {
336
new webpack.ContextReplacementPlugin(
337
/(.+)?express(\\|\/)(.+)?/,
338
path.join(__dirname, 'src'),
339
+ {}
340
)
341
]
342
}
0 commit comments