@pure-ds/core 0.5.15 → 0.5.16

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pure-ds/core",
3
3
  "shortname": "pds",
4
- "version": "0.5.15",
4
+ "version": "0.5.16",
5
5
  "description": "Pure Design System - Why develop a Design System when you can generate one?",
6
6
  "repository": {
7
7
  "type": "git",
@@ -335,8 +335,11 @@ settingsBtn.addEventListener('click', () => {
335
335
  }
336
336
 
337
337
  function buildPdsConfig() {
338
- return `let defaultEnhancers = [];
339
- if (typeof window !== "undefined") defaultEnhancers = PDS.defaultEnhancers;
338
+ return `import { PDS } from '@pure-ds/core';
339
+
340
+ const defaultEnhancers = Array.isArray(PDS.defaultEnhancers)
341
+ ? PDS.defaultEnhancers
342
+ : [];
340
343
 
341
344
  export const config = {
342
345
  mode: "static",