@jadujoel/web-audio-clip-node 0.1.0 → 0.1.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/README.md +9 -3
- package/dist/audio/ClipNode.js +312 -0
- package/dist/audio/processor-code.js +2 -0
- package/dist/audio/processor-kernel.js +861 -0
- package/dist/audio/processor.js +80 -0
- package/dist/audio/types.js +9 -0
- package/dist/audio/utils.js +128 -0
- package/dist/audio/version.d.ts +1 -0
- package/dist/audio/version.js +2 -0
- package/dist/audio/workletUrl.js +17 -0
- package/dist/components/AudioControl.js +99 -0
- package/dist/components/ContextMenu.js +73 -0
- package/dist/components/ControlSection.js +74 -0
- package/dist/components/DetuneControl.js +44 -0
- package/dist/components/DisplayPanel.js +6 -0
- package/dist/components/FilterControl.js +48 -0
- package/dist/components/GainControl.js +44 -0
- package/dist/components/PanControl.js +50 -0
- package/dist/components/PlaybackRateControl.js +44 -0
- package/dist/components/PlayheadSlider.js +20 -0
- package/dist/components/SnappableSlider.js +174 -0
- package/dist/components/TransportButtons.js +9 -0
- package/dist/controls/controlDefs.js +211 -0
- package/dist/controls/formatValueText.js +80 -0
- package/dist/controls/linkedControlPairs.js +51 -0
- package/dist/data/cache.js +17 -0
- package/dist/data/fileStore.js +39 -0
- package/dist/hooks/useClipNode.js +338 -0
- package/dist/lib-react.js +17 -19
- package/dist/lib.bundle.js +6 -0
- package/dist/lib.bundle.js.map +7 -0
- package/dist/lib.js +16 -44
- package/dist/store/clipStore.js +71 -0
- package/examples/README.md +10 -0
- package/examples/cdn-vanilla/README.md +13 -0
- package/examples/cdn-vanilla/index.html +69 -0
- package/examples/esm-bundler/README.md +8 -0
- package/examples/esm-bundler/index.html +12 -0
- package/examples/esm-bundler/node_modules/.package-lock.json +1168 -0
- package/examples/esm-bundler/node_modules/@esbuild/darwin-arm64/README.md +3 -0
- package/examples/esm-bundler/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/examples/esm-bundler/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/LICENSE +21 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/README.md +91 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/ClipNode.d.ts +86 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/ClipNode.js +312 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/processor-code.d.ts +1 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/processor-code.js +2 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/processor-kernel.d.ts +43 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/processor-kernel.js +861 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/processor.d.ts +1 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/processor.js +80 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/types.d.ts +192 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/types.js +9 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/utils.d.ts +22 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/utils.js +128 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/version.d.ts +1 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/version.js +2 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/workletUrl.d.ts +6 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/audio/workletUrl.js +17 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/AudioControl.d.ts +28 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/AudioControl.js +99 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/ContextMenu.d.ts +17 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/ContextMenu.js +73 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/ControlSection.d.ts +26 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/ControlSection.js +74 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/DetuneControl.d.ts +10 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/DetuneControl.js +44 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/DisplayPanel.d.ts +14 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/DisplayPanel.js +6 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/FilterControl.d.ts +12 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/FilterControl.js +48 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/GainControl.d.ts +10 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/GainControl.js +44 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/PanControl.d.ts +10 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/PanControl.js +50 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/PlaybackRateControl.d.ts +10 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/PlaybackRateControl.js +44 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/PlayheadSlider.d.ts +13 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/PlayheadSlider.js +20 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/SnappableSlider.d.ts +18 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/SnappableSlider.js +174 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/TransportButtons.d.ts +14 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/components/TransportButtons.js +9 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/controls/controlDefs.d.ts +31 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/controls/controlDefs.js +211 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/controls/formatValueText.d.ts +2 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/controls/formatValueText.js +80 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/controls/linkedControlPairs.d.ts +20 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/controls/linkedControlPairs.js +51 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/data/cache.d.ts +1 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/data/cache.js +17 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/data/fileStore.d.ts +6 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/data/fileStore.js +39 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/hooks/useClipNode.d.ts +31 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/hooks/useClipNode.js +338 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/lib-react.d.ts +15 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/lib-react.js +17 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/lib.d.ts +16 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/lib.js +16 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/processor.js +4 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/processor.js.map +12 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/store/clipStore.d.ts +63 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/store/clipStore.js +71 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/dist/styles.css +739 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/README.md +10 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/cdn-vanilla/README.md +13 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/cdn-vanilla/index.html +61 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/esm-bundler/README.md +8 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/esm-bundler/index.html +12 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/esm-bundler/package.json +15 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/esm-bundler/src/main.ts +43 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/react/README.md +10 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/react/index.html +12 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/react/package.json +21 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/react/src/App.tsx +20 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/react/src/main.tsx +9 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/react/vite.config.ts +6 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/self-hosted/README.md +11 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/self-hosted/index.html +12 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/self-hosted/package.json +16 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/self-hosted/public/.gitkeep +1 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/examples/self-hosted/src/main.ts +46 -0
- package/examples/esm-bundler/node_modules/@jadujoel/web-audio-clip-node/package.json +88 -0
- package/examples/esm-bundler/node_modules/@rollup/rollup-darwin-arm64/README.md +3 -0
- package/examples/esm-bundler/node_modules/@rollup/rollup-darwin-arm64/package.json +22 -0
- package/examples/esm-bundler/node_modules/@rollup/rollup-darwin-arm64/rollup.darwin-arm64.node +0 -0
- package/examples/esm-bundler/node_modules/@types/estree/LICENSE +21 -0
- package/examples/esm-bundler/node_modules/@types/estree/README.md +15 -0
- package/examples/esm-bundler/node_modules/@types/estree/flow.d.ts +167 -0
- package/examples/esm-bundler/node_modules/@types/estree/index.d.ts +694 -0
- package/examples/esm-bundler/node_modules/@types/estree/package.json +27 -0
- package/examples/esm-bundler/node_modules/esbuild/LICENSE.md +21 -0
- package/examples/esm-bundler/node_modules/esbuild/README.md +3 -0
- package/examples/esm-bundler/node_modules/esbuild/bin/esbuild +0 -0
- package/examples/esm-bundler/node_modules/esbuild/install.js +289 -0
- package/examples/esm-bundler/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/esm-bundler/node_modules/esbuild/lib/main.js +2242 -0
- package/examples/esm-bundler/node_modules/esbuild/package.json +49 -0
- package/examples/esm-bundler/node_modules/fdir/LICENSE +7 -0
- package/examples/esm-bundler/node_modules/fdir/README.md +91 -0
- package/examples/esm-bundler/node_modules/fdir/dist/index.cjs +588 -0
- package/examples/esm-bundler/node_modules/fdir/dist/index.d.cts +155 -0
- package/examples/esm-bundler/node_modules/fdir/dist/index.d.mts +155 -0
- package/examples/esm-bundler/node_modules/fdir/dist/index.mjs +570 -0
- package/examples/esm-bundler/node_modules/fdir/package.json +103 -0
- package/examples/esm-bundler/node_modules/nanoid/LICENSE +20 -0
- package/examples/esm-bundler/node_modules/nanoid/README.md +39 -0
- package/examples/esm-bundler/node_modules/nanoid/async/index.browser.cjs +69 -0
- package/examples/esm-bundler/node_modules/nanoid/async/index.browser.js +34 -0
- package/examples/esm-bundler/node_modules/nanoid/async/index.cjs +71 -0
- package/examples/esm-bundler/node_modules/nanoid/async/index.d.ts +56 -0
- package/examples/esm-bundler/node_modules/nanoid/async/index.js +35 -0
- package/examples/esm-bundler/node_modules/nanoid/async/index.native.js +26 -0
- package/examples/esm-bundler/node_modules/nanoid/async/package.json +12 -0
- package/examples/esm-bundler/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/examples/esm-bundler/node_modules/nanoid/index.browser.cjs +72 -0
- package/examples/esm-bundler/node_modules/nanoid/index.browser.js +34 -0
- package/examples/esm-bundler/node_modules/nanoid/index.cjs +85 -0
- package/examples/esm-bundler/node_modules/nanoid/index.d.cts +91 -0
- package/examples/esm-bundler/node_modules/nanoid/index.d.ts +91 -0
- package/examples/esm-bundler/node_modules/nanoid/index.js +45 -0
- package/examples/esm-bundler/node_modules/nanoid/nanoid.js +1 -0
- package/examples/esm-bundler/node_modules/nanoid/non-secure/index.cjs +34 -0
- package/examples/esm-bundler/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/examples/esm-bundler/node_modules/nanoid/non-secure/index.js +21 -0
- package/examples/esm-bundler/node_modules/nanoid/non-secure/package.json +6 -0
- package/examples/esm-bundler/node_modules/nanoid/package.json +89 -0
- package/examples/esm-bundler/node_modules/nanoid/url-alphabet/index.cjs +7 -0
- package/examples/esm-bundler/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/examples/esm-bundler/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/examples/esm-bundler/node_modules/picocolors/LICENSE +15 -0
- package/examples/esm-bundler/node_modules/picocolors/README.md +21 -0
- package/examples/esm-bundler/node_modules/picocolors/package.json +25 -0
- package/examples/esm-bundler/node_modules/picocolors/picocolors.browser.js +4 -0
- package/examples/esm-bundler/node_modules/picocolors/picocolors.d.ts +5 -0
- package/examples/esm-bundler/node_modules/picocolors/picocolors.js +75 -0
- package/examples/esm-bundler/node_modules/picocolors/types.d.ts +51 -0
- package/examples/esm-bundler/node_modules/picomatch/LICENSE +21 -0
- package/examples/esm-bundler/node_modules/picomatch/README.md +749 -0
- package/examples/esm-bundler/node_modules/picomatch/index.js +17 -0
- package/examples/esm-bundler/node_modules/picomatch/lib/constants.js +184 -0
- package/examples/esm-bundler/node_modules/picomatch/lib/parse.js +1386 -0
- package/examples/esm-bundler/node_modules/picomatch/lib/picomatch.js +349 -0
- package/examples/esm-bundler/node_modules/picomatch/lib/scan.js +391 -0
- package/examples/esm-bundler/node_modules/picomatch/lib/utils.js +72 -0
- package/examples/esm-bundler/node_modules/picomatch/package.json +82 -0
- package/examples/esm-bundler/node_modules/picomatch/posix.js +3 -0
- package/examples/esm-bundler/node_modules/postcss/LICENSE +20 -0
- package/examples/esm-bundler/node_modules/postcss/README.md +28 -0
- package/examples/esm-bundler/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/examples/esm-bundler/node_modules/postcss/lib/at-rule.js +25 -0
- package/examples/esm-bundler/node_modules/postcss/lib/comment.d.ts +67 -0
- package/examples/esm-bundler/node_modules/postcss/lib/comment.js +13 -0
- package/examples/esm-bundler/node_modules/postcss/lib/container.d.ts +478 -0
- package/examples/esm-bundler/node_modules/postcss/lib/container.js +447 -0
- package/examples/esm-bundler/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/examples/esm-bundler/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/examples/esm-bundler/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/examples/esm-bundler/node_modules/postcss/lib/declaration.js +24 -0
- package/examples/esm-bundler/node_modules/postcss/lib/document.d.ts +68 -0
- package/examples/esm-bundler/node_modules/postcss/lib/document.js +33 -0
- package/examples/esm-bundler/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/examples/esm-bundler/node_modules/postcss/lib/fromJSON.js +54 -0
- package/examples/esm-bundler/node_modules/postcss/lib/input.d.ts +226 -0
- package/examples/esm-bundler/node_modules/postcss/lib/input.js +273 -0
- package/examples/esm-bundler/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/examples/esm-bundler/node_modules/postcss/lib/lazy-result.js +550 -0
- package/examples/esm-bundler/node_modules/postcss/lib/list.d.ts +60 -0
- package/examples/esm-bundler/node_modules/postcss/lib/list.js +58 -0
- package/examples/esm-bundler/node_modules/postcss/lib/map-generator.js +376 -0
- package/examples/esm-bundler/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/examples/esm-bundler/node_modules/postcss/lib/no-work-result.js +137 -0
- package/examples/esm-bundler/node_modules/postcss/lib/node.d.ts +555 -0
- package/examples/esm-bundler/node_modules/postcss/lib/node.js +449 -0
- package/examples/esm-bundler/node_modules/postcss/lib/parse.d.ts +9 -0
- package/examples/esm-bundler/node_modules/postcss/lib/parse.js +42 -0
- package/examples/esm-bundler/node_modules/postcss/lib/parser.js +611 -0
- package/examples/esm-bundler/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/examples/esm-bundler/node_modules/postcss/lib/postcss.d.ts +456 -0
- package/examples/esm-bundler/node_modules/postcss/lib/postcss.js +101 -0
- package/examples/esm-bundler/node_modules/postcss/lib/postcss.mjs +30 -0
- package/examples/esm-bundler/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/examples/esm-bundler/node_modules/postcss/lib/previous-map.js +145 -0
- package/examples/esm-bundler/node_modules/postcss/lib/processor.d.ts +114 -0
- package/examples/esm-bundler/node_modules/postcss/lib/processor.js +67 -0
- package/examples/esm-bundler/node_modules/postcss/lib/result.d.ts +204 -0
- package/examples/esm-bundler/node_modules/postcss/lib/result.js +42 -0
- package/examples/esm-bundler/node_modules/postcss/lib/root.d.ts +86 -0
- package/examples/esm-bundler/node_modules/postcss/lib/root.js +61 -0
- package/examples/esm-bundler/node_modules/postcss/lib/rule.d.ts +126 -0
- package/examples/esm-bundler/node_modules/postcss/lib/rule.js +27 -0
- package/examples/esm-bundler/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/examples/esm-bundler/node_modules/postcss/lib/stringifier.js +353 -0
- package/examples/esm-bundler/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/examples/esm-bundler/node_modules/postcss/lib/stringify.js +11 -0
- package/examples/esm-bundler/node_modules/postcss/lib/symbols.js +5 -0
- package/examples/esm-bundler/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/examples/esm-bundler/node_modules/postcss/lib/tokenize.js +266 -0
- package/examples/esm-bundler/node_modules/postcss/lib/warn-once.js +13 -0
- package/examples/esm-bundler/node_modules/postcss/lib/warning.d.ts +146 -0
- package/examples/esm-bundler/node_modules/postcss/lib/warning.js +37 -0
- package/examples/esm-bundler/node_modules/postcss/package.json +88 -0
- package/examples/esm-bundler/node_modules/rollup/LICENSE.md +679 -0
- package/examples/esm-bundler/node_modules/rollup/README.md +134 -0
- package/examples/esm-bundler/node_modules/rollup/dist/bin/rollup +1912 -0
- package/examples/esm-bundler/node_modules/rollup/dist/es/getLogFilter.js +64 -0
- package/examples/esm-bundler/node_modules/rollup/dist/es/package.json +1 -0
- package/examples/esm-bundler/node_modules/rollup/dist/es/parseAst.js +12 -0
- package/examples/esm-bundler/node_modules/rollup/dist/es/rollup.js +17 -0
- package/examples/esm-bundler/node_modules/rollup/dist/es/shared/node-entry.js +24463 -0
- package/examples/esm-bundler/node_modules/rollup/dist/es/shared/parseAst.js +2124 -0
- package/examples/esm-bundler/node_modules/rollup/dist/es/shared/watch.js +9909 -0
- package/examples/esm-bundler/node_modules/rollup/dist/getLogFilter.d.ts +5 -0
- package/examples/esm-bundler/node_modules/rollup/dist/getLogFilter.js +69 -0
- package/examples/esm-bundler/node_modules/rollup/dist/loadConfigFile.d.ts +20 -0
- package/examples/esm-bundler/node_modules/rollup/dist/loadConfigFile.js +29 -0
- package/examples/esm-bundler/node_modules/rollup/dist/native.js +161 -0
- package/examples/esm-bundler/node_modules/rollup/dist/parseAst.d.ts +4 -0
- package/examples/esm-bundler/node_modules/rollup/dist/parseAst.js +22 -0
- package/examples/esm-bundler/node_modules/rollup/dist/rollup.d.ts +1225 -0
- package/examples/esm-bundler/node_modules/rollup/dist/rollup.js +127 -0
- package/examples/esm-bundler/node_modules/rollup/dist/shared/fsevents-importer.js +37 -0
- package/examples/esm-bundler/node_modules/rollup/dist/shared/index.js +9615 -0
- package/examples/esm-bundler/node_modules/rollup/dist/shared/loadConfigFile.js +572 -0
- package/examples/esm-bundler/node_modules/rollup/dist/shared/parseAst.js +2361 -0
- package/examples/esm-bundler/node_modules/rollup/dist/shared/rollup.js +24385 -0
- package/examples/esm-bundler/node_modules/rollup/dist/shared/watch-cli.js +542 -0
- package/examples/esm-bundler/node_modules/rollup/dist/shared/watch.js +324 -0
- package/examples/esm-bundler/node_modules/rollup/package.json +289 -0
- package/examples/esm-bundler/node_modules/source-map-js/LICENSE +28 -0
- package/examples/esm-bundler/node_modules/source-map-js/README.md +765 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/array-set.js +121 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/base64.js +67 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/source-node.js +413 -0
- package/examples/esm-bundler/node_modules/source-map-js/lib/util.js +594 -0
- package/examples/esm-bundler/node_modules/source-map-js/package.json +71 -0
- package/examples/esm-bundler/node_modules/source-map-js/source-map.d.ts +104 -0
- package/examples/esm-bundler/node_modules/source-map-js/source-map.js +8 -0
- package/examples/esm-bundler/node_modules/tinyglobby/LICENSE +21 -0
- package/examples/esm-bundler/node_modules/tinyglobby/README.md +25 -0
- package/examples/esm-bundler/node_modules/tinyglobby/dist/index.cjs +334 -0
- package/examples/esm-bundler/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/examples/esm-bundler/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/examples/esm-bundler/node_modules/tinyglobby/dist/index.mjs +306 -0
- package/examples/esm-bundler/node_modules/tinyglobby/package.json +73 -0
- package/examples/esm-bundler/node_modules/vite/LICENSE.md +2406 -0
- package/examples/esm-bundler/node_modules/vite/README.md +20 -0
- package/examples/esm-bundler/node_modules/vite/bin/openChrome.applescript +95 -0
- package/examples/esm-bundler/node_modules/vite/bin/vite.js +79 -0
- package/examples/esm-bundler/node_modules/vite/client.d.ts +279 -0
- package/examples/esm-bundler/node_modules/vite/dist/client/client.mjs +1134 -0
- package/examples/esm-bundler/node_modules/vite/dist/client/env.mjs +24 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/chunks/dep-3RmXg9uo.js +553 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/chunks/dep-4-IQbZQm.js +822 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/chunks/dep-CvfTChi5.js +8218 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js +49565 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/chunks/dep-lpEPC2f9.js +7113 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/cli.js +949 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/constants.js +149 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/index.d.ts +4227 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/index.js +194 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/module-runner.d.ts +290 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/module-runner.js +1311 -0
- package/examples/esm-bundler/node_modules/vite/dist/node/moduleRunnerTransport.d-DJ_mE5sf.d.ts +87 -0
- package/examples/esm-bundler/node_modules/vite/dist/node-cjs/publicUtils.cjs +3987 -0
- package/examples/esm-bundler/node_modules/vite/index.cjs +96 -0
- package/examples/esm-bundler/node_modules/vite/index.d.cts +6 -0
- package/examples/esm-bundler/node_modules/vite/misc/false.js +1 -0
- package/examples/esm-bundler/node_modules/vite/misc/true.js +1 -0
- package/examples/esm-bundler/node_modules/vite/package.json +204 -0
- package/examples/esm-bundler/node_modules/vite/types/customEvent.d.ts +45 -0
- package/examples/esm-bundler/node_modules/vite/types/hmrPayload.d.ts +74 -0
- package/examples/esm-bundler/node_modules/vite/types/hot.d.ts +39 -0
- package/examples/esm-bundler/node_modules/vite/types/import-meta.d.ts +5 -0
- package/examples/esm-bundler/node_modules/vite/types/importGlob.d.ts +75 -0
- package/examples/esm-bundler/node_modules/vite/types/importMeta.d.ts +31 -0
- package/examples/esm-bundler/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +63 -0
- package/examples/esm-bundler/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
- package/examples/esm-bundler/node_modules/vite/types/metadata.d.ts +35 -0
- package/examples/esm-bundler/node_modules/vite/types/package.json +4 -0
- package/examples/esm-bundler/package-lock.json +1127 -0
- package/examples/esm-bundler/package.json +15 -0
- package/examples/esm-bundler/src/main.ts +43 -0
- package/examples/react/README.md +10 -0
- package/examples/react/index.html +12 -0
- package/examples/react/package.json +19 -0
- package/examples/react/src/App.tsx +20 -0
- package/examples/react/src/main.tsx +9 -0
- package/examples/self-hosted/README.md +11 -0
- package/examples/self-hosted/index.html +12 -0
- package/examples/self-hosted/package.json +16 -0
- package/examples/self-hosted/public/.gitkeep +1 -0
- package/examples/self-hosted/src/main.ts +46 -0
- package/package.json +4 -2
- package/dist/lib-react.js.map +0 -9
- package/dist/lib.js.map +0 -9
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/*
|
|
2
|
+
@license
|
|
3
|
+
Rollup.js v4.60.1
|
|
4
|
+
Mon, 30 Mar 2026 04:32:12 GMT - commit ae871d762f6bbeb4320d28fe179211168f27a434
|
|
5
|
+
|
|
6
|
+
https://github.com/rollup/rollup
|
|
7
|
+
|
|
8
|
+
Released under the MIT License.
|
|
9
|
+
*/
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
13
|
+
|
|
14
|
+
const rollup = require('./rollup.js');
|
|
15
|
+
const path = require('node:path');
|
|
16
|
+
const process = require('node:process');
|
|
17
|
+
const index = require('./index.js');
|
|
18
|
+
const node_os = require('node:os');
|
|
19
|
+
require('./parseAst.js');
|
|
20
|
+
require('../native.js');
|
|
21
|
+
require('path');
|
|
22
|
+
require('node:perf_hooks');
|
|
23
|
+
require('node:fs/promises');
|
|
24
|
+
require('fs');
|
|
25
|
+
require('util');
|
|
26
|
+
require('stream');
|
|
27
|
+
require('os');
|
|
28
|
+
require('./fsevents-importer.js');
|
|
29
|
+
require('events');
|
|
30
|
+
|
|
31
|
+
class FileWatcher {
|
|
32
|
+
constructor(task, chokidarOptions) {
|
|
33
|
+
this.transformWatchers = new Map();
|
|
34
|
+
this.chokidarOptions = chokidarOptions;
|
|
35
|
+
this.task = task;
|
|
36
|
+
this.watcher = this.createWatcher(null);
|
|
37
|
+
}
|
|
38
|
+
close() {
|
|
39
|
+
this.watcher.close();
|
|
40
|
+
for (const watcher of this.transformWatchers.values()) {
|
|
41
|
+
watcher.close();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
unwatch(id) {
|
|
45
|
+
this.watcher.unwatch(id);
|
|
46
|
+
const transformWatcher = this.transformWatchers.get(id);
|
|
47
|
+
if (transformWatcher) {
|
|
48
|
+
this.transformWatchers.delete(id);
|
|
49
|
+
transformWatcher.close();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
watch(id, isTransformDependency) {
|
|
53
|
+
if (isTransformDependency) {
|
|
54
|
+
const watcher = this.transformWatchers.get(id) ?? this.createWatcher(id);
|
|
55
|
+
watcher.add(id);
|
|
56
|
+
this.transformWatchers.set(id, watcher);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
this.watcher.add(id);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
createWatcher(transformWatcherId) {
|
|
63
|
+
const task = this.task;
|
|
64
|
+
const isLinux = node_os.platform() === 'linux';
|
|
65
|
+
const isFreeBSD = node_os.platform() === 'freebsd';
|
|
66
|
+
const isTransformDependency = transformWatcherId !== null;
|
|
67
|
+
const handleChange = (id, event) => {
|
|
68
|
+
const changedId = transformWatcherId || id;
|
|
69
|
+
if (isLinux || isFreeBSD) {
|
|
70
|
+
// unwatching and watching fixes an issue with chokidar where on certain systems,
|
|
71
|
+
// a file that was unlinked and immediately recreated would create a change event
|
|
72
|
+
// but then no longer any further events
|
|
73
|
+
watcher.unwatch(changedId);
|
|
74
|
+
watcher.add(changedId);
|
|
75
|
+
}
|
|
76
|
+
task.invalidate(changedId, { event, isTransformDependency });
|
|
77
|
+
};
|
|
78
|
+
const watcher = index.chokidar
|
|
79
|
+
.watch([], this.chokidarOptions)
|
|
80
|
+
.on('add', id => handleChange(id, 'create'))
|
|
81
|
+
.on('change', id => handleChange(id, 'update'))
|
|
82
|
+
.on('unlink', id => handleChange(id, 'delete'));
|
|
83
|
+
return watcher;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const eventsRewrites = {
|
|
88
|
+
create: {
|
|
89
|
+
create: 'buggy',
|
|
90
|
+
delete: null, //delete file from map
|
|
91
|
+
update: 'create'
|
|
92
|
+
},
|
|
93
|
+
delete: {
|
|
94
|
+
create: 'update',
|
|
95
|
+
delete: 'buggy',
|
|
96
|
+
update: 'buggy'
|
|
97
|
+
},
|
|
98
|
+
update: {
|
|
99
|
+
create: 'buggy',
|
|
100
|
+
delete: 'delete',
|
|
101
|
+
update: 'update'
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
class Watcher {
|
|
105
|
+
constructor(optionsList, emitter) {
|
|
106
|
+
this.buildDelay = 0;
|
|
107
|
+
this.buildTimeout = null;
|
|
108
|
+
this.closed = false;
|
|
109
|
+
this.invalidatedIds = new Map();
|
|
110
|
+
this.rerun = false;
|
|
111
|
+
this.running = true;
|
|
112
|
+
this.emitter = emitter;
|
|
113
|
+
emitter.close = this.close.bind(this);
|
|
114
|
+
this.tasks = optionsList.map(options => new Task(this, options));
|
|
115
|
+
for (const { watch } of optionsList) {
|
|
116
|
+
if (watch && typeof watch.buildDelay === 'number') {
|
|
117
|
+
this.buildDelay = Math.max(this.buildDelay, watch.buildDelay);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
process.nextTick(() => this.run());
|
|
121
|
+
}
|
|
122
|
+
async close() {
|
|
123
|
+
if (this.closed)
|
|
124
|
+
return;
|
|
125
|
+
this.closed = true;
|
|
126
|
+
if (this.buildTimeout)
|
|
127
|
+
clearTimeout(this.buildTimeout);
|
|
128
|
+
for (const task of this.tasks) {
|
|
129
|
+
task.close();
|
|
130
|
+
}
|
|
131
|
+
await this.emitter.emit('close');
|
|
132
|
+
this.emitter.removeAllListeners();
|
|
133
|
+
}
|
|
134
|
+
invalidate(file) {
|
|
135
|
+
if (file) {
|
|
136
|
+
const previousEvent = this.invalidatedIds.get(file.id);
|
|
137
|
+
const event = previousEvent ? eventsRewrites[previousEvent][file.event] : file.event;
|
|
138
|
+
if (event === 'buggy') {
|
|
139
|
+
//TODO: throws or warn? Currently just ignore, uses new event
|
|
140
|
+
this.invalidatedIds.set(file.id, file.event);
|
|
141
|
+
}
|
|
142
|
+
else if (event === null) {
|
|
143
|
+
this.invalidatedIds.delete(file.id);
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
this.invalidatedIds.set(file.id, event);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
if (this.running) {
|
|
150
|
+
this.rerun = true;
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (this.buildTimeout)
|
|
154
|
+
clearTimeout(this.buildTimeout);
|
|
155
|
+
this.buildTimeout = setTimeout(async () => {
|
|
156
|
+
this.buildTimeout = null;
|
|
157
|
+
try {
|
|
158
|
+
await Promise.all([...this.invalidatedIds].map(([id, event]) => this.emitter.emit('change', id, { event })));
|
|
159
|
+
this.invalidatedIds.clear();
|
|
160
|
+
await this.emitter.emit('restart');
|
|
161
|
+
this.emitter.removeListenersForCurrentRun();
|
|
162
|
+
this.run();
|
|
163
|
+
}
|
|
164
|
+
catch (error) {
|
|
165
|
+
this.invalidatedIds.clear();
|
|
166
|
+
await this.emitter.emit('event', {
|
|
167
|
+
code: 'ERROR',
|
|
168
|
+
error,
|
|
169
|
+
result: null
|
|
170
|
+
});
|
|
171
|
+
await this.emitter.emit('event', {
|
|
172
|
+
code: 'END'
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}, this.buildDelay);
|
|
176
|
+
}
|
|
177
|
+
async run() {
|
|
178
|
+
this.running = true;
|
|
179
|
+
await this.emitter.emit('event', {
|
|
180
|
+
code: 'START'
|
|
181
|
+
});
|
|
182
|
+
for (const task of this.tasks) {
|
|
183
|
+
await task.run();
|
|
184
|
+
}
|
|
185
|
+
this.running = false;
|
|
186
|
+
await this.emitter.emit('event', {
|
|
187
|
+
code: 'END'
|
|
188
|
+
});
|
|
189
|
+
if (this.rerun) {
|
|
190
|
+
this.rerun = false;
|
|
191
|
+
this.invalidate();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
class Task {
|
|
196
|
+
constructor(watcher, options) {
|
|
197
|
+
this.cache = { modules: [] };
|
|
198
|
+
this.watchFiles = [];
|
|
199
|
+
this.closed = false;
|
|
200
|
+
this.invalidated = true;
|
|
201
|
+
this.watched = new Set();
|
|
202
|
+
this.watcher = watcher;
|
|
203
|
+
this.options = options;
|
|
204
|
+
this.skipWrite = Boolean(options.watch && options.watch.skipWrite);
|
|
205
|
+
this.outputs = this.options.output;
|
|
206
|
+
this.outputFiles = this.outputs.map(output => {
|
|
207
|
+
if (output.file || output.dir)
|
|
208
|
+
return path.resolve(output.file || output.dir);
|
|
209
|
+
return undefined;
|
|
210
|
+
});
|
|
211
|
+
this.watchOptions = this.options.watch || {};
|
|
212
|
+
this.filter = rollup.createFilter(this.watchOptions.include, this.watchOptions.exclude);
|
|
213
|
+
this.fileWatcher = new FileWatcher(this, {
|
|
214
|
+
...this.watchOptions.chokidar,
|
|
215
|
+
disableGlobbing: true,
|
|
216
|
+
ignoreInitial: true
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
close() {
|
|
220
|
+
this.closed = true;
|
|
221
|
+
this.fileWatcher.close();
|
|
222
|
+
}
|
|
223
|
+
invalidate(id, details) {
|
|
224
|
+
this.invalidated = true;
|
|
225
|
+
if (details.isTransformDependency) {
|
|
226
|
+
for (const module of this.cache.modules) {
|
|
227
|
+
if (!module.transformDependencies.includes(id))
|
|
228
|
+
continue;
|
|
229
|
+
// effective invalidation
|
|
230
|
+
module.originalCode = null;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
this.watcher.invalidate({ event: details.event, id });
|
|
234
|
+
this.watchOptions.onInvalidate?.(id);
|
|
235
|
+
}
|
|
236
|
+
async run() {
|
|
237
|
+
if (!this.invalidated)
|
|
238
|
+
return;
|
|
239
|
+
this.invalidated = false;
|
|
240
|
+
const options = {
|
|
241
|
+
...this.options,
|
|
242
|
+
cache: this.cache
|
|
243
|
+
};
|
|
244
|
+
const start = Date.now();
|
|
245
|
+
await this.watcher.emitter.emit('event', {
|
|
246
|
+
code: 'BUNDLE_START',
|
|
247
|
+
input: this.options.input,
|
|
248
|
+
output: this.outputFiles
|
|
249
|
+
});
|
|
250
|
+
let result = null;
|
|
251
|
+
try {
|
|
252
|
+
result = await rollup.rollupInternal(options, this.watcher.emitter);
|
|
253
|
+
if (this.closed) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
this.updateWatchedFiles(result);
|
|
257
|
+
if (!this.skipWrite) {
|
|
258
|
+
await Promise.all(this.outputs.map(output => result.write(output)));
|
|
259
|
+
if (this.closed) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
this.updateWatchedFiles(result);
|
|
263
|
+
}
|
|
264
|
+
await this.watcher.emitter.emit('event', {
|
|
265
|
+
code: 'BUNDLE_END',
|
|
266
|
+
duration: Date.now() - start,
|
|
267
|
+
input: this.options.input,
|
|
268
|
+
output: this.outputFiles,
|
|
269
|
+
result
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
catch (error) {
|
|
273
|
+
if (!this.closed) {
|
|
274
|
+
if (Array.isArray(error.watchFiles)) {
|
|
275
|
+
for (const id of error.watchFiles) {
|
|
276
|
+
this.watchFile(id);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (error.id) {
|
|
280
|
+
this.cache.modules = this.cache.modules.filter(module => module.id !== error.id);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
await this.watcher.emitter.emit('event', {
|
|
284
|
+
code: 'ERROR',
|
|
285
|
+
error,
|
|
286
|
+
result
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
updateWatchedFiles(result) {
|
|
291
|
+
const previouslyWatched = this.watched;
|
|
292
|
+
this.watched = new Set();
|
|
293
|
+
this.watchFiles = result.watchFiles;
|
|
294
|
+
this.cache = result.cache;
|
|
295
|
+
for (const id of this.watchFiles) {
|
|
296
|
+
this.watchFile(id);
|
|
297
|
+
}
|
|
298
|
+
for (const module of this.cache.modules) {
|
|
299
|
+
for (const depId of module.transformDependencies) {
|
|
300
|
+
this.watchFile(depId, true);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
for (const id of previouslyWatched) {
|
|
304
|
+
if (!this.watched.has(id)) {
|
|
305
|
+
this.fileWatcher.unwatch(id);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
watchFile(id, isTransformDependency = false) {
|
|
310
|
+
if (!this.filter(id))
|
|
311
|
+
return;
|
|
312
|
+
this.watched.add(id);
|
|
313
|
+
if (this.outputFiles.includes(id)) {
|
|
314
|
+
throw new Error('Cannot import the generated bundle');
|
|
315
|
+
}
|
|
316
|
+
// this is necessary to ensure that any 'renamed' files
|
|
317
|
+
// continue to be watched following an error
|
|
318
|
+
this.fileWatcher.watch(id, isTransformDependency);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
exports.Task = Task;
|
|
323
|
+
exports.Watcher = Watcher;
|
|
324
|
+
//# sourceMappingURL=watch.js.map
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rollup",
|
|
3
|
+
"version": "4.60.1",
|
|
4
|
+
"description": "Next-generation ES module bundler",
|
|
5
|
+
"main": "dist/rollup.js",
|
|
6
|
+
"module": "dist/es/rollup.js",
|
|
7
|
+
"types": "dist/rollup.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"rollup": "dist/bin/rollup"
|
|
10
|
+
},
|
|
11
|
+
"napi": {
|
|
12
|
+
"binaryName": "rollup",
|
|
13
|
+
"packageName": "@rollup/rollup",
|
|
14
|
+
"targets": [
|
|
15
|
+
"aarch64-apple-darwin",
|
|
16
|
+
"aarch64-linux-android",
|
|
17
|
+
"aarch64-pc-windows-msvc",
|
|
18
|
+
"aarch64-unknown-freebsd",
|
|
19
|
+
"aarch64-unknown-linux-gnu",
|
|
20
|
+
"aarch64-unknown-linux-musl",
|
|
21
|
+
"armv7-linux-androideabi",
|
|
22
|
+
"armv7-unknown-linux-gnueabihf",
|
|
23
|
+
"armv7-unknown-linux-musleabihf",
|
|
24
|
+
"i686-pc-windows-msvc",
|
|
25
|
+
"loongarch64-unknown-linux-gnu",
|
|
26
|
+
"loongarch64-unknown-linux-musl",
|
|
27
|
+
"riscv64gc-unknown-linux-gnu",
|
|
28
|
+
"riscv64gc-unknown-linux-musl",
|
|
29
|
+
"powerpc64le-unknown-linux-gnu",
|
|
30
|
+
"powerpc64le-unknown-linux-musl",
|
|
31
|
+
"s390x-unknown-linux-gnu",
|
|
32
|
+
"x86_64-apple-darwin",
|
|
33
|
+
"x86_64-pc-windows-gnu",
|
|
34
|
+
"x86_64-pc-windows-msvc",
|
|
35
|
+
"x86_64-unknown-freebsd",
|
|
36
|
+
"x86_64-unknown-linux-gnu",
|
|
37
|
+
"x86_64-unknown-linux-musl",
|
|
38
|
+
"x86_64-unknown-openbsd",
|
|
39
|
+
"aarch64-unknown-linux-ohos"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "concurrently -c green,blue \"npm run build:wasm\" \"npm:build:ast-converters\" && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
|
|
44
|
+
"build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
|
|
45
|
+
"build:napi": "napi build --cwd rust/bindings_napi --platform --dts ../../native.d.ts --no-js --output-dir ../.. --package-json-path ../../package.json",
|
|
46
|
+
"build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
|
|
47
|
+
"build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
|
|
48
|
+
"update:napi": "npm run build:napi && npm run build:copy-native",
|
|
49
|
+
"build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
|
|
50
|
+
"build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit",
|
|
51
|
+
"build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native",
|
|
52
|
+
"update:js": "npm run build:js && npm run build:copy-native",
|
|
53
|
+
"build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
|
|
54
|
+
"dev": "concurrently -kc green,blue 'nodemon --watch rust -e rs --exec \"npm run build:wasm\"' 'vitepress dev docs'",
|
|
55
|
+
"build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
|
|
56
|
+
"build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
|
|
57
|
+
"build:bootstrap:cjs": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit && shx rm -rf dist-build",
|
|
58
|
+
"build:docs": "vitepress build docs",
|
|
59
|
+
"build:ast-converters": "node scripts/generate-ast-converters.js",
|
|
60
|
+
"preview:docs": "vitepress preview docs",
|
|
61
|
+
"ci:artifacts": "napi artifacts",
|
|
62
|
+
"ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
|
|
63
|
+
"ci:test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
|
|
64
|
+
"ci:coverage": "NODE_OPTIONS=--no-experimental-require-module nyc --reporter lcovonly mocha",
|
|
65
|
+
"lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
|
|
66
|
+
"lint:js": "eslint . --fix --cache --concurrency auto",
|
|
67
|
+
"lint:js:nofix": "eslint . --cache --concurrency auto",
|
|
68
|
+
"lint:native-js": "node scripts/lint-native-js.js",
|
|
69
|
+
"lint:markdown": "prettier --write \"**/*.md\"",
|
|
70
|
+
"lint:markdown:nofix": "prettier --check \"**/*.md\"",
|
|
71
|
+
"lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
|
|
72
|
+
"lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
|
|
73
|
+
"perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
|
|
74
|
+
"prepare": "husky && npm run prepare:patch && node scripts/check-release.js || npm run build:prepare",
|
|
75
|
+
"prepare:patch": "patch-package",
|
|
76
|
+
"prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
|
|
77
|
+
"postpublish": "node scripts/postpublish.js",
|
|
78
|
+
"prepublish:napi": "napi prepublish --no-gh-release",
|
|
79
|
+
"release": "node scripts/prepare-release.js",
|
|
80
|
+
"release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
|
|
81
|
+
"check-audit": "check-audit",
|
|
82
|
+
"resolve-audit": "resolve-audit",
|
|
83
|
+
"test": "npm run build && npm run test:all",
|
|
84
|
+
"test:update-snapshots": "node scripts/update-snapshots.js",
|
|
85
|
+
"test:cjs": "npm run build:cjs && npm run test:only",
|
|
86
|
+
"test:quick": "mocha -b test/test.js",
|
|
87
|
+
"test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan,red 'npm:test:only' 'npm:test:browser' 'npm:test:typescript' 'npm:test:package' 'npm:test:options'",
|
|
88
|
+
"test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
|
|
89
|
+
"test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
|
|
90
|
+
"test:leak": "npm install --no-save weak-napi && node --expose-gc test/leak/index.js",
|
|
91
|
+
"test:package": "node scripts/test-package.js",
|
|
92
|
+
"test:options": "node scripts/test-options.js",
|
|
93
|
+
"test:only": "mocha test/test.js",
|
|
94
|
+
"test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit -p . && tsc --noEmit -p scripts && vue-tsc --noEmit -p docs",
|
|
95
|
+
"test:browser": "mocha test/browser/index.js",
|
|
96
|
+
"watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
|
|
97
|
+
},
|
|
98
|
+
"repository": {
|
|
99
|
+
"type": "git",
|
|
100
|
+
"url": "git+https://github.com/rollup/rollup.git"
|
|
101
|
+
},
|
|
102
|
+
"keywords": [
|
|
103
|
+
"modules",
|
|
104
|
+
"bundler",
|
|
105
|
+
"bundling",
|
|
106
|
+
"es6",
|
|
107
|
+
"optimizer"
|
|
108
|
+
],
|
|
109
|
+
"author": "Rich Harris",
|
|
110
|
+
"license": "MIT",
|
|
111
|
+
"bugs": {
|
|
112
|
+
"url": "https://github.com/rollup/rollup/issues"
|
|
113
|
+
},
|
|
114
|
+
"homepage": "https://rollupjs.org/",
|
|
115
|
+
"optionalDependencies": {
|
|
116
|
+
"fsevents": "~2.3.2",
|
|
117
|
+
"@rollup/rollup-darwin-arm64": "4.60.1",
|
|
118
|
+
"@rollup/rollup-android-arm64": "4.60.1",
|
|
119
|
+
"@rollup/rollup-win32-arm64-msvc": "4.60.1",
|
|
120
|
+
"@rollup/rollup-freebsd-arm64": "4.60.1",
|
|
121
|
+
"@rollup/rollup-linux-arm64-gnu": "4.60.1",
|
|
122
|
+
"@rollup/rollup-linux-arm64-musl": "4.60.1",
|
|
123
|
+
"@rollup/rollup-android-arm-eabi": "4.60.1",
|
|
124
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.60.1",
|
|
125
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.60.1",
|
|
126
|
+
"@rollup/rollup-win32-ia32-msvc": "4.60.1",
|
|
127
|
+
"@rollup/rollup-linux-loong64-gnu": "4.60.1",
|
|
128
|
+
"@rollup/rollup-linux-loong64-musl": "4.60.1",
|
|
129
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.60.1",
|
|
130
|
+
"@rollup/rollup-linux-riscv64-musl": "4.60.1",
|
|
131
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.60.1",
|
|
132
|
+
"@rollup/rollup-linux-ppc64-musl": "4.60.1",
|
|
133
|
+
"@rollup/rollup-linux-s390x-gnu": "4.60.1",
|
|
134
|
+
"@rollup/rollup-darwin-x64": "4.60.1",
|
|
135
|
+
"@rollup/rollup-win32-x64-gnu": "4.60.1",
|
|
136
|
+
"@rollup/rollup-win32-x64-msvc": "4.60.1",
|
|
137
|
+
"@rollup/rollup-freebsd-x64": "4.60.1",
|
|
138
|
+
"@rollup/rollup-linux-x64-gnu": "4.60.1",
|
|
139
|
+
"@rollup/rollup-linux-x64-musl": "4.60.1",
|
|
140
|
+
"@rollup/rollup-openbsd-x64": "4.60.1",
|
|
141
|
+
"@rollup/rollup-openharmony-arm64": "4.60.1"
|
|
142
|
+
},
|
|
143
|
+
"dependencies": {
|
|
144
|
+
"@types/estree": "1.0.8"
|
|
145
|
+
},
|
|
146
|
+
"devDependenciesComments": {
|
|
147
|
+
"core-js": "We only update manually as every update requires a snapshot update"
|
|
148
|
+
},
|
|
149
|
+
"devDependencies": {
|
|
150
|
+
"@codemirror/commands": "^6.10.3",
|
|
151
|
+
"@codemirror/lang-javascript": "^6.2.5",
|
|
152
|
+
"@codemirror/language": "^6.12.2",
|
|
153
|
+
"@codemirror/search": "^6.6.0",
|
|
154
|
+
"@codemirror/state": "^6.6.0",
|
|
155
|
+
"@codemirror/view": "^6.40.0",
|
|
156
|
+
"@eslint/js": "^10.0.1",
|
|
157
|
+
"@inquirer/prompts": "^7.10.1",
|
|
158
|
+
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
159
|
+
"@mermaid-js/mermaid-cli": "^11.12.0",
|
|
160
|
+
"@napi-rs/cli": "3.4.1",
|
|
161
|
+
"@rollup/plugin-alias": "^6.0.0",
|
|
162
|
+
"@rollup/plugin-buble": "^1.0.3",
|
|
163
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
164
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
165
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
166
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
167
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
168
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
169
|
+
"@rollup/pluginutils": "^5.3.0",
|
|
170
|
+
"@shikijs/vitepress-twoslash": "^4.0.2",
|
|
171
|
+
"@types/mocha": "^10.0.10",
|
|
172
|
+
"@types/node": "^20.19.37",
|
|
173
|
+
"@types/picomatch": "^4.0.2",
|
|
174
|
+
"@types/semver": "^7.7.1",
|
|
175
|
+
"@types/yargs-parser": "^21.0.3",
|
|
176
|
+
"@vue/language-server": "^3.2.6",
|
|
177
|
+
"acorn": "^8.16.0",
|
|
178
|
+
"acorn-import-assertions": "^1.9.0",
|
|
179
|
+
"acorn-import-phases": "^1.0.4",
|
|
180
|
+
"acorn-jsx": "^5.3.2",
|
|
181
|
+
"buble": "^0.20.0",
|
|
182
|
+
"builtin-modules": "^5.0.0",
|
|
183
|
+
"chokidar": "^3.6.0",
|
|
184
|
+
"concurrently": "^9.2.1",
|
|
185
|
+
"core-js": "3.38.1",
|
|
186
|
+
"cross-env": "^10.1.0",
|
|
187
|
+
"date-time": "^4.0.0",
|
|
188
|
+
"es5-shim": "^4.6.7",
|
|
189
|
+
"es6-shim": "^0.35.8",
|
|
190
|
+
"eslint": "^10.1.0",
|
|
191
|
+
"eslint-config-prettier": "^10.1.8",
|
|
192
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
193
|
+
"eslint-plugin-unicorn": "^63.0.0",
|
|
194
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
195
|
+
"fixturify": "^3.0.0",
|
|
196
|
+
"flru": "^1.0.2",
|
|
197
|
+
"fs-extra": "^11.3.4",
|
|
198
|
+
"github-api": "^3.4.0",
|
|
199
|
+
"globals": "^17.4.0",
|
|
200
|
+
"husky": "^9.1.7",
|
|
201
|
+
"is-reference": "^3.0.3",
|
|
202
|
+
"lint-staged": "^16.4.0",
|
|
203
|
+
"locate-character": "^3.0.0",
|
|
204
|
+
"magic-string": "^0.30.21",
|
|
205
|
+
"memfs": "^4.57.1",
|
|
206
|
+
"mocha": "11.7.5",
|
|
207
|
+
"nodemon": "^3.1.14",
|
|
208
|
+
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
209
|
+
"nyc": "^18.0.0",
|
|
210
|
+
"patch-package": "^8.0.1",
|
|
211
|
+
"picocolors": "^1.1.1",
|
|
212
|
+
"picomatch": "^4.0.4",
|
|
213
|
+
"pinia": "^3.0.4",
|
|
214
|
+
"prettier": "^3.8.1",
|
|
215
|
+
"prettier-plugin-organize-imports": "^4.3.0",
|
|
216
|
+
"pretty-bytes": "^7.1.0",
|
|
217
|
+
"pretty-ms": "^9.3.0",
|
|
218
|
+
"requirejs": "^2.3.8",
|
|
219
|
+
"rollup": "^4.60.0",
|
|
220
|
+
"rollup-plugin-license": "^3.7.0",
|
|
221
|
+
"semver": "^7.7.4",
|
|
222
|
+
"shx": "^0.4.0",
|
|
223
|
+
"signal-exit": "^4.1.0",
|
|
224
|
+
"source-map": "^0.7.6",
|
|
225
|
+
"source-map-support": "^0.5.21",
|
|
226
|
+
"systemjs": "^6.15.1",
|
|
227
|
+
"terser": "^5.46.1",
|
|
228
|
+
"tslib": "^2.8.1",
|
|
229
|
+
"typescript": "^5.9.3",
|
|
230
|
+
"typescript-eslint": "^8.57.2",
|
|
231
|
+
"vite": "^7.3.1",
|
|
232
|
+
"vitepress": "^1.6.4",
|
|
233
|
+
"vue": "^3.5.30",
|
|
234
|
+
"vue-eslint-parser": "^10.4.0",
|
|
235
|
+
"vue-tsc": "^3.2.6",
|
|
236
|
+
"wasm-pack": "^0.14.0",
|
|
237
|
+
"yargs-parser": "^21.1.1"
|
|
238
|
+
},
|
|
239
|
+
"overrides": {
|
|
240
|
+
"axios": "^1.13.6",
|
|
241
|
+
"esbuild": ">0.24.2",
|
|
242
|
+
"lodash-es": ">4.17.22",
|
|
243
|
+
"path-scurry": {
|
|
244
|
+
"lru-cache": "^11.2.7"
|
|
245
|
+
},
|
|
246
|
+
"readable-stream": "npm:@built-in/readable-stream@1",
|
|
247
|
+
"semver": "^7.7.4",
|
|
248
|
+
"tar": ">7.5.6",
|
|
249
|
+
"vite": "$vite"
|
|
250
|
+
},
|
|
251
|
+
"comments": {
|
|
252
|
+
"vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
|
|
253
|
+
},
|
|
254
|
+
"files": [
|
|
255
|
+
"dist/*.node",
|
|
256
|
+
"dist/**/*.js",
|
|
257
|
+
"dist/*.d.ts",
|
|
258
|
+
"dist/bin/rollup",
|
|
259
|
+
"dist/es/package.json"
|
|
260
|
+
],
|
|
261
|
+
"engines": {
|
|
262
|
+
"node": ">=18.0.0",
|
|
263
|
+
"npm": ">=8.0.0"
|
|
264
|
+
},
|
|
265
|
+
"exports": {
|
|
266
|
+
".": {
|
|
267
|
+
"types": "./dist/rollup.d.ts",
|
|
268
|
+
"import": "./dist/es/rollup.js",
|
|
269
|
+
"require": "./dist/rollup.js"
|
|
270
|
+
},
|
|
271
|
+
"./loadConfigFile": {
|
|
272
|
+
"types": "./dist/loadConfigFile.d.ts",
|
|
273
|
+
"require": "./dist/loadConfigFile.js",
|
|
274
|
+
"default": "./dist/loadConfigFile.js"
|
|
275
|
+
},
|
|
276
|
+
"./getLogFilter": {
|
|
277
|
+
"types": "./dist/getLogFilter.d.ts",
|
|
278
|
+
"import": "./dist/es/getLogFilter.js",
|
|
279
|
+
"require": "./dist/getLogFilter.js"
|
|
280
|
+
},
|
|
281
|
+
"./parseAst": {
|
|
282
|
+
"types": "./dist/parseAst.d.ts",
|
|
283
|
+
"import": "./dist/es/parseAst.js",
|
|
284
|
+
"require": "./dist/parseAst.js"
|
|
285
|
+
},
|
|
286
|
+
"./dist/*": "./dist/*",
|
|
287
|
+
"./package.json": "./package.json"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
Copyright (c) 2009-2011, Mozilla Foundation and contributors
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
* Neither the names of the Mozilla Foundation nor the names of project
|
|
16
|
+
contributors may be used to endorse or promote products derived from this
|
|
17
|
+
software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
20
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
21
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|