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
{{ message }}
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.
Is there a way to import / define / annotate a node module for its side effects only?
For example: Vaadin Elements
(source: https://vaadin.com/tutorials/using-web-components)
In JS this will load the module and some side effects will be applied to the HTML page (custom styles, dom-module nodes, ...).
In Kotlin Js, importing a module which is not explicitly used has no effect.
Everything works fine when I uncomment the
console.log
line but I was wondering if there was a better way.An example project can be found here:
https://github.com/dvekeman/vaadin-elements-kotlin/tree/sideeffects
(sideeffects branch)
The text was updated successfully, but these errors were encountered: