Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Allow bundle to have multiple entries #150

Open
samijaber opened this issue Dec 3, 2020 · 1 comment
Open

Allow bundle to have multiple entries #150

samijaber opened this issue Dec 3, 2020 · 1 comment

Comments

@samijaber
Copy link
Contributor

We would like to export internals for our own usage under unsplash-js/internals instead of polluting the main unsplash-js scope and increasing bundle size for all consumers.

This should be doable in rollup, but we're using tsdx which has a bug around this feature: jaredpalmer/tsdx#175

See #149 for more details.

@OliverJAsh
Copy link
Member

If the consumer is using tree shaking then the new internals module shouldn't pollute the bundle size, as long as they don't import anything from there.

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

No branches or pull requests

2 participants