dynim-react 1.0.28 → 1.0.29
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/dist/vite/plugin.d.ts.map +1 -1
- package/dist/vite/plugin.js +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAKlC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EAAE,GAAG,oBAAoB,GACjD,MAAM,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAKlC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EAAE,GAAG,oBAAoB,GACjD,MAAM,CAwCR;AAED,eAAe,aAAa,CAAA"}
|
package/dist/vite/plugin.js
CHANGED
|
@@ -61,8 +61,9 @@ export function dynimPackages(packagesOrOptions) {
|
|
|
61
61
|
.map((name, i) => `import * as _pkg${i} from '${name}'`)
|
|
62
62
|
.join('\n');
|
|
63
63
|
// Generate the packages object entries
|
|
64
|
+
// Spread namespace objects into plain objects so exports are enumerable
|
|
64
65
|
const entries = packageNames
|
|
65
|
-
.map((name, i) => ` '${name}': _pkg${i}`)
|
|
66
|
+
.map((name, i) => ` '${name}': { ..._pkg${i} }`)
|
|
66
67
|
.join(',\n');
|
|
67
68
|
// Return the generated module code
|
|
68
69
|
return `${imports}
|