rollup.js issues #2618
Replies: 5 comments 10 replies
-
If I narrow down to just rolling up the |
Beta Was this translation helpful? Give feedback.
-
Another issue that might be related: |
Beta Was this translation helpful? Give feedback.
-
The bundle does not export the classes that you try import in your application, that's why you get the error. My point was that you don't actually need the classes in your app as you don't use them directly, so just remove them from the import. instead of import {
ShellBar, SideNavigation, SideNavigationItem, SideNavigationSubItem
}
from '../lib/sapui5wc.esm.js'; import just the bundle:
The bundle will import the web components, the web components modules will call the define() method and whatever is rendered via lit-html like |
Beta Was this translation helpful? Give feedback.
-
@hrstoyanov not sure if you have given it a try recently, but thanks to your questions we improved the asset handling to work with the modern build tools. You can have a look at this PR for more information. Thanks for triggering this improvement and any further feedback is welcome. |
Beta Was this translation helpful? Give feedback.
-
@pskelin @ilhan007 Based on our previous discussion,
I tried rollup.js to bundle my SAP Ui5 1.0.0-rc.11 web components, filed some issues here but the major issue I face is that after the rollup bundling, the components are not exported from within the generated bundle. Why?
Here is my
package.json
:Here is my
rollup.config.js
(note the output format is es and not esm):And here is the file with requested SAP UI5 WC stuff to be rolled up:
Beta Was this translation helpful? Give feedback.
All reactions