Table of Content
Dynamic Bundling
// client.router.dev
console.log("this will print when bundling");
export default [];
// main.js
const clientRouter = () => import(/* webpackChunkName */ "./router/client.router.dev");
clientRouter().then(module => {
// 'this will print when bundling'
console.log(module.default); // will print []
});
Today I Learned