zds-pickers 4.1.3 → 4.1.4
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/index.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3236 -3135
- package/dist/index.es.js.map +1 -1
- package/dist/other/SoundFontProvider.js +2 -1
- package/package.json +5 -2
|
@@ -21,7 +21,8 @@ if (typeof global !== 'undefined') {
|
|
|
21
21
|
global.MIDI = window.MIDI || { Soundfont: {} };
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
// Import
|
|
24
|
+
// CRITICAL: Import at top level to ensure bundler processes it
|
|
25
|
+
// Import bundled soundfont to avoid CSP issues in Electron apps
|
|
25
26
|
// NOTE: This adds ~2.2MB to the bundle size. Currently all consumers need piano,
|
|
26
27
|
// but if future web apps don't need audio, consider making this import conditional
|
|
27
28
|
// or implementing lazy loading to reduce bundle size for audio-free use cases.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zds-pickers",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
"access": "public",
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
|
-
"sideEffects":
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"lib/soundfonts/*.js",
|
|
21
|
+
"dist/soundfonts/*.js"
|
|
22
|
+
],
|
|
20
23
|
"files": [
|
|
21
24
|
"dist",
|
|
22
25
|
"lib/soundfonts"
|