
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@mightyplow/loadable-ssr
Advanced tools
Helpers for enabling server side rendering with @loadable/component.
This is a helper library to enable server side rendering when using @loadable/component for React and building with webpack.
This package contains two helpers:
I successfully tested this with babel-loader and ts-loader.
npm i @mightyplow/loadable-ssr -D
Add these changes in the webpack config for your server application:
module.exports = {
...
// You probably have externals defined to prevent webpack from building node_modules into
// your server application. Mostly webpack-node-externals is being used for this. You have
// to whitelist @loadable/component because otherwise the alias below won't work.
externals: [
require('webpack-node-externals')({
whitelist: [
'@loadable/component'
]
})
],
...
resolve: {
alias: {
// replace @loadable/component with the mock
'@loadable/component': '@mightyplow/loadable-ssr/loadable-mock
}
},
...
module: {
rules: [
{
test: /\.jsx?/,
loaders: [
'babel-loader',
// should be the last item in order to be executed first
'@mightyplow/loadable-ssr/transform-dynamic-import-loader'
]
}
]
}
...
}
FAQs
Helpers for enabling server side rendering with @loadable/component.
We found that @mightyplow/loadable-ssr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.