Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/toolkit/webpack/config.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const libBundle = createWebpackConfig({
output: {
library: 'AlexLib',
libraryTarget: 'umd',
publicPath: './',
},
externals: [
{
Expand Down Expand Up @@ -84,6 +85,7 @@ const libBundleWithReact = createWebpackConfig({
output: {
library: 'AlexLib',
libraryTarget: 'umd',
publicPath: './',
},
externals: [
// 此处没有 external React,将 React 打包进去以应对 React16 的集成方
Expand Down Expand Up @@ -127,6 +129,7 @@ const globalBundle = createWebpackConfig({
output: {
library: 'Alex',
libraryTarget: 'global',
publicPath: './',
},
externals: [
{
Expand Down Expand Up @@ -169,6 +172,7 @@ const globalBundleWithReact = createWebpackConfig({
output: {
library: 'Alex',
libraryTarget: 'global',
publicPath: './',
},
externals: [
{
Expand Down