@embeddable.com/sdk-core 4.0.0-next.1 → 4.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -380,12 +380,12 @@ const loadJson = async (filePath) => {
380
380
 
381
381
  const getComponentLibraryConfig = (componentLibrary) => {
382
382
  let libraryName = componentLibrary;
383
- const include = [];
383
+ let include;
384
384
  const exclude = [];
385
385
  if (typeof componentLibrary === "object" && componentLibrary !== null) {
386
386
  libraryName = componentLibrary.name;
387
387
  if (componentLibrary.include) {
388
- include.push(...componentLibrary.include);
388
+ include = [...componentLibrary.include];
389
389
  }
390
390
  if (componentLibrary.exclude) {
391
391
  exclude.push(...componentLibrary.exclude);