Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const bundles = getLoadableBundles(modules);
res.status(200).send(
template({
html,
runtimeJSBundle: clientAssets['runtime~main.js'],
mainJSBundle: clientAssets['main.js'],
vendorJSBundle: clientAssets['vendor.js'],
mainCSSBundle: clientAssets['main.css'],
bundles,
})
);
});
preloadDynamicImports().then(() => {
app.listen(port, () => {
console.log(`✅ server started on port: ${port}`); // eslint-disable-line no-console
});
});