Exclude storyblok-js-client from @storyblok/js build #514
Labels
feature
[Issue] New feature or request
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Description
I am looking to modify the Vite configuration for the
@storyblok/js
package to ensure that thestoryblok-js-client
library is not bundled within the distribution build. The intention is to treatstoryblok-js-client
as an external dependency, which should be loaded separately rather than being included in the final build output.Suggested solution or improvement
I added
storyblok-js-client
as an external module and defined a global variable for it to ensure it is not bundled with the distribution. The updated configuration is as follows:Additional context
With the new configuration, the expectation is that
storyblok-js-client
will be referenced as an external resource in projects utilizing@storyblok/js
, thereby reducing the bundle size and separating concerns.Validations
The text was updated successfully, but these errors were encountered: