You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The underlying logic used by these web components assumes that theme files end up in the bundle beforesrc files.
When using static imports, this works as expected and the output of files in the bundle matches the order of imports:
Potentially related to #399 or #2983 - if so, feel free to close as duplicate.
Here is the reproduction. Run
npm i && npm run build && npm start
and check the console.The issue manifests when having two dynamic imports in
src/app-element.js
(with static imports, everything works fine).Content of imported files
@vaadin/checkbox/vaadin-checkbox.js
@vaadin/checkbox/theme/lumo/vaadin-checkbox.js
@vaadin/checkbox-group/vaadin-checkbox-group.js
@vaadin/checkbox-group/theme/lumo/vaadin-checkbox-group.js
The underlying logic used by these web components assumes that
theme
files end up in the bundle beforesrc
files.When using static imports, this works as expected and the output of files in the bundle matches the order of imports:
However, when using dynamic imports and code splitting, file from
theme
folder is bundled after thesrc
files:The text was updated successfully, but these errors were encountered: