Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/tired-knives-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lynx-js/lynx-bundle-rslib-config": patch
---

Fix `globDynamicComponentEntry is not defined` error when minify is enabled in external bundle consumer.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class MainThreadRuntimeWrapperWebpackPlugin {
new BannerPlugin({
test: this.options.test ?? /\.js$/,
raw: true,
banner: `(function () {
banner: `(function () {
// TODO: remove this after \`useModuleWrapper\` supports MTS
var globDynamicComponentEntry = '__Card__';
const module = { exports: {} }
const exports = module.exports`,
}).apply(compiler)
Expand Down
Loading