Complete the code to import the Vue component for lazy loading.
const MyComponent = () => import('[1]');
Lazy loading a Vue component requires the relative path with extension, like './MyComponent.vue'.
Complete the code to analyze the bundle size using webpack-bundle-analyzer.
const BundleAnalyzerPlugin = require('[1]').BundleAnalyzerPlugin;
The correct package name is 'webpack-bundle-analyzer' to import the plugin.
Fix the error in the Vue component import to enable tree shaking.
import [1] from 'vue';
Using named imports like { createApp } allows tree shaking to remove unused code.
Fill both blanks to configure webpack to use the bundle analyzer plugin.
plugins: [new [1]()], module.exports = [2];
The plugin is named BundleAnalyzerPlugin and the exported config object is usually named config.
Fill all three blanks to create a tree-shakable Vue component import with dynamic chunk name.
const LazyComp = () => import(/* webpackChunkName: '[1]' */ '[2]').then(m => m.[3]);
The chunk name is 'MyChunk', the path is './components/MyComponent.vue', and the default export is accessed with 'default'.