Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BundlingMode.LibraryOnly ignores require and js.import #414

Open
cornerman opened this issue Mar 14, 2022 · 0 comments
Open

BundlingMode.LibraryOnly ignores require and js.import #414

cornerman opened this issue Mar 14, 2022 · 0 comments

Comments

@cornerman
Copy link

I have an issue with ignored imports in BundlingMode.LibraryOnly.

When using the @JSImport("...") for everything, all is fine.

But this pattern of writing an annotated facade is a lot of boilerplate when requiring css files or one-off js depdencies. So, I would like to sometimes write this instead: js.`import`("...") or js.Dynamic.global.require("..."). Sadly, this only works in the default BundlingMode, but is not picked up in the entrypoints file from BundlingMode.LibraryOnly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant