packages/bundler-plugin/README.md
Bundler plugins for the qiankun micro-frontend framework. Currently supports Webpack (4 & 5), with plans to support other bundlers like Vite and Turbopack in the future.
Using npm:
npm install @qiankunjs/bundler-plugin --save-dev
Or using yarn:
yarn add @qiankunjs/bundler-plugin --dev
jsonpFunction/chunkLoadingGlobal namewindow, ensuring the library can run in the browserIn your webpack.config.js or other configuration files:
const { QiankunWebpackPlugin } = require('@qiankunjs/bundler-plugin');
module.exports = {
plugins: [
new QiankunWebpackPlugin({
packageName: 'optionalPackageName',
}),
],
};
packageName: Specifies the name of the output library. If not provided, the name from package.json will be used.The plugin automatically detects and marks the entry script in your HTML:
compilation.entrypoints API to identify entry chunksAny form of contribution is welcome! Please submit PRs or open issues for discussion.
MIT