@coderline/alphatab-vite 1.8.1 → 1.8.3

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.
Files changed (47) hide show
  1. package/dist/AlphaTabVitePluginOptions.cjs +34 -37
  2. package/dist/AlphaTabVitePluginOptions.mjs +34 -35
  3. package/dist/alphaTab.vite.cjs +37 -44
  4. package/dist/alphaTab.vite.mjs +36 -36
  5. package/dist/alphaTabVitePlugin.cjs +50 -54
  6. package/dist/alphaTabVitePlugin.mjs +49 -50
  7. package/dist/bridge/asset.cjs +50 -80
  8. package/dist/bridge/asset.mjs +47 -57
  9. package/dist/bridge/build.cjs +152 -214
  10. package/dist/bridge/build.mjs +149 -191
  11. package/dist/bridge/bundler.cjs +54 -0
  12. package/dist/bridge/bundler.mjs +52 -0
  13. package/dist/bridge/config.cjs +34 -37
  14. package/dist/bridge/config.mjs +34 -35
  15. package/dist/bridge/constants.cjs +73 -80
  16. package/dist/bridge/constants.mjs +72 -76
  17. package/dist/bridge/fsUtils.cjs +46 -55
  18. package/dist/bridge/fsUtils.mjs +43 -51
  19. package/dist/bridge/index.cjs +58 -68
  20. package/dist/bridge/index.mjs +42 -42
  21. package/dist/bridge/optimizer.cjs +112 -155
  22. package/dist/bridge/optimizer.mjs +108 -132
  23. package/dist/bridge/plugins.cjs +39 -45
  24. package/dist/bridge/plugins.mjs +38 -41
  25. package/dist/bridge/resolve.cjs +54 -66
  26. package/dist/bridge/resolve.mjs +53 -62
  27. package/dist/bridge/typeUtils.cjs +34 -37
  28. package/dist/bridge/typeUtils.mjs +34 -35
  29. package/dist/bridge/utils.cjs +87 -121
  30. package/dist/bridge/utils.mjs +84 -117
  31. package/dist/bridge/worker.cjs +179 -183
  32. package/dist/bridge/worker.mjs +175 -160
  33. package/dist/chunk.cjs +63 -0
  34. package/dist/copyAssetsPlugin.cjs +102 -163
  35. package/dist/copyAssetsPlugin.mjs +35 -141
  36. package/dist/copyAssetsPlugin2.mjs +108 -0
  37. package/dist/detectionGlobalPlugin.cjs +65 -68
  38. package/dist/detectionGlobalPlugin.mjs +62 -64
  39. package/dist/dist.cjs +6595 -0
  40. package/dist/dist.mjs +6589 -0
  41. package/dist/importMetaPlugin.cjs +147 -192
  42. package/dist/importMetaPlugin.mjs +143 -188
  43. package/dist/prompt-DewH0PjV.cjs +885 -0
  44. package/dist/prompt-DewH0PjV.mjs +882 -0
  45. package/dist/workerPlugin.cjs +145 -219
  46. package/dist/workerPlugin.mjs +141 -196
  47. package/package.json +17 -17
@@ -1,217 +1,175 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.8.1 (, build 30)
3
- *
4
- * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
- *
6
- * This Source Code Form is subject to the terms of the Mozilla Public
7
- * License, v. 2.0. If a copy of the MPL was not distributed with this
8
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
- *
10
- * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
- *
12
- * MIT License
13
- * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
- *
15
- * Permission is hereby granted, free of charge, to any person obtaining a copy
16
- * of this software and associated documentation files (the "Software"), to deal
17
- * in the Software without restriction, including without limitation the rights
18
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
- * copies of the Software, and to permit persons to whom the Software is
20
- * furnished to do so, subject to the following conditions:
21
- *
22
- * The above copyright notice and this permission notice shall be included in all
23
- * copies or substantial portions of the Software.
24
- *
25
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
- * SOFTWARE.
32
- *
33
- * @preserve
34
- * @license
35
- */
36
-
37
- import * as path from 'node:path';
38
- import { ROLLUP_HOOKS } from './constants.mjs';
39
- import { getHookHandler } from './plugins.mjs';
40
- import { joinUrlSegments, partialEncodeURIPath } from './utils.mjs';
41
-
42
- // index.ts for more details on contents and license of this file
43
- const needsEscapeRegEx = /[\n\r'\\\u2028\u2029]/;
44
- const quoteNewlineRegEx = /([\n\r'\u2028\u2029])/g;
45
- const backSlashRegEx = /\\/g;
2
+ * alphaTab Vite Plugin v1.8.3 (, build 32)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
+ *
12
+ * MIT License
13
+ * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ * copies of the Software, and to permit persons to whom the Software is
20
+ * furnished to do so, subject to the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be included in all
23
+ * copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ * SOFTWARE.
32
+ *
33
+ * @preserve
34
+ * @license
35
+ */
36
+ import { joinUrlSegments, partialEncodeURIPath } from "./utils.mjs";
37
+ import { ROLLUP_HOOKS } from "./constants.mjs";
38
+ import { getHookHandler } from "./plugins.mjs";
39
+ import * as path$1 from "node:path";
40
+ //#region src/bridge/build.ts
41
+ var needsEscapeRegEx = /[\n\r'\\\u2028\u2029]/;
42
+ var quoteNewlineRegEx = /([\n\r'\u2028\u2029])/g;
43
+ var backSlashRegEx = /\\/g;
46
44
  function escapeId(id) {
47
- if (!needsEscapeRegEx.test(id)) {
48
- return id;
49
- }
50
- return id.replace(backSlashRegEx, '\\\\').replace(quoteNewlineRegEx, '\\$1');
45
+ if (!needsEscapeRegEx.test(id)) return id;
46
+ return id.replace(backSlashRegEx, "\\\\").replace(quoteNewlineRegEx, "\\$1");
51
47
  }
52
- const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
53
- const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.src || document.baseURI`);
54
- const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
55
- const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`);
56
- const relativeUrlMechanisms = {
57
- amd: relativePath => {
58
- if (relativePath[0] !== '.') {
59
- relativePath = `./${relativePath}`;
60
- }
61
- return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI`);
62
- },
63
- cjs: relativePath => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath)})`,
64
- es: relativePath => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', import.meta.url`),
65
- iife: relativePath => getRelativeUrlFromDocument(relativePath),
66
- // NOTE: make sure rollup generate `module` params
67
- system: relativePath => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', module.meta.url`),
68
- umd: relativePath => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath, true)})`
69
- };
70
- const customRelativeUrlMechanisms = {
71
- ...relativeUrlMechanisms,
72
- 'worker-iife': relativePath => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', self.location.href`)
48
+ var getResolveUrl = (path, URL = "URL") => `new ${URL}(${path}).href`;
49
+ var getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ""}document.currentScript && document.currentScript.src || document.baseURI`);
50
+ var getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
51
+ var getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`);
52
+ var customRelativeUrlMechanisms = {
53
+ amd: (relativePath) => {
54
+ if (relativePath[0] !== ".") relativePath = `./${relativePath}`;
55
+ return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI`);
56
+ },
57
+ cjs: (relativePath) => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath)})`,
58
+ es: (relativePath) => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', import.meta.url`),
59
+ iife: (relativePath) => getRelativeUrlFromDocument(relativePath),
60
+ system: (relativePath) => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', module.meta.url`),
61
+ umd: (relativePath) => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath, true)})`,
62
+ "worker-iife": (relativePath) => getResolveUrl(`'${escapeId(partialEncodeURIPath(relativePath))}', self.location.href`)
73
63
  };
74
64
  /**
75
- * @internal
76
- */
65
+ * @internal
66
+ */
77
67
  function createToImportMetaURLBasedRelativeRuntime(format, isWorker) {
78
- const formatLong = isWorker && format === 'iife' ? 'worker-iife' : format;
79
- const toRelativePath = customRelativeUrlMechanisms[formatLong];
80
- return (filename, importer) => ({
81
- runtime: toRelativePath(path.posix.relative(path.dirname(importer), filename))
82
- });
68
+ const toRelativePath = customRelativeUrlMechanisms[isWorker && format === "iife" ? "worker-iife" : format];
69
+ return (filename, importer) => ({ runtime: toRelativePath(path$1.posix.relative(path$1.dirname(importer), filename)) });
83
70
  }
84
71
  /**
85
- * @internal
86
- */
72
+ * @internal
73
+ */
87
74
  function toOutputFilePathInJS(filename, type, hostId, hostType, config, toRelative) {
88
- const { renderBuiltUrl } = config.experimental;
89
- let relative = config.base === '' || config.base === './';
90
- if (renderBuiltUrl) {
91
- const result = renderBuiltUrl(filename, {
92
- hostId,
93
- hostType,
94
- type,
95
- ssr: !!config.build.ssr
96
- });
97
- if (typeof result === 'object') {
98
- if (result.runtime) {
99
- return { runtime: result.runtime };
100
- }
101
- if (typeof result.relative === 'boolean') {
102
- relative = result.relative;
103
- }
104
- }
105
- else if (result) {
106
- return result;
107
- }
108
- }
109
- if (relative && !config.build.ssr) {
110
- return toRelative(filename, hostId);
111
- }
112
- return joinUrlSegments(config.base, filename);
75
+ const { renderBuiltUrl } = config.experimental;
76
+ let relative = config.base === "" || config.base === "./";
77
+ if (renderBuiltUrl) {
78
+ const result = renderBuiltUrl(filename, {
79
+ hostId,
80
+ hostType,
81
+ type,
82
+ ssr: !!config.build.ssr
83
+ });
84
+ if (typeof result === "object") {
85
+ if (result.runtime) return { runtime: result.runtime };
86
+ if (typeof result.relative === "boolean") relative = result.relative;
87
+ } else if (result) return result;
88
+ }
89
+ if (relative && !config.build.ssr) return toRelative(filename, hostId);
90
+ return joinUrlSegments(config.base, filename);
113
91
  }
114
- // https://github.com/vitejs/vite/blob/v6.1.1/packages/vite/src/node/build.ts#L1131
115
92
  /**
116
- * @internal
117
- */
93
+ * @internal
94
+ */
118
95
  function injectEnvironmentToHooks(environment, plugin) {
119
- const { resolveId, load, transform } = plugin;
120
- const clone = { ...plugin };
121
- for (const hook of Object.keys(clone)) {
122
- switch (hook) {
123
- case 'resolveId':
124
- clone[hook] = wrapEnvironmentResolveId(environment, resolveId);
125
- break;
126
- case 'load':
127
- clone[hook] = wrapEnvironmentLoad(environment, load);
128
- break;
129
- case 'transform':
130
- clone[hook] = wrapEnvironmentTransform(environment, transform);
131
- break;
132
- default:
133
- if (ROLLUP_HOOKS.includes(hook)) {
134
- clone[hook] = wrapEnvironmentHook(environment, clone[hook]);
135
- }
136
- break;
137
- }
138
- }
139
- return clone;
96
+ const { resolveId, load, transform } = plugin;
97
+ const clone = { ...plugin };
98
+ for (const hook of Object.keys(clone)) switch (hook) {
99
+ case "resolveId":
100
+ clone[hook] = wrapEnvironmentResolveId(environment, resolveId);
101
+ break;
102
+ case "load":
103
+ clone[hook] = wrapEnvironmentLoad(environment, load);
104
+ break;
105
+ case "transform":
106
+ clone[hook] = wrapEnvironmentTransform(environment, transform);
107
+ break;
108
+ default:
109
+ if (ROLLUP_HOOKS.includes(hook)) clone[hook] = wrapEnvironmentHook(environment, clone[hook]);
110
+ break;
111
+ }
112
+ return clone;
140
113
  }
141
114
  function wrapEnvironmentResolveId(environment, hook) {
142
- if (!hook) {
143
- return;
144
- }
145
- const fn = getHookHandler(hook);
146
- const handler = function (id, importer, options) {
147
- return fn.call(injectEnvironmentInContext(this, environment), id, importer, injectSsrFlag(options, environment));
148
- };
149
- if ('handler' in hook) {
150
- return {
151
- ...hook,
152
- handler
153
- };
154
- }
155
- return handler;
115
+ if (!hook) return;
116
+ const fn = getHookHandler(hook);
117
+ const handler = function(id, importer, options) {
118
+ return fn.call(injectEnvironmentInContext(this, environment), id, importer, injectSsrFlag(options, environment));
119
+ };
120
+ if ("handler" in hook) return {
121
+ ...hook,
122
+ handler
123
+ };
124
+ return handler;
156
125
  }
157
126
  function wrapEnvironmentLoad(environment, hook) {
158
- if (!hook) {
159
- return;
160
- }
161
- const fn = getHookHandler(hook);
162
- const handler = function (id, ...args) {
163
- return fn.call(injectEnvironmentInContext(this, environment), id, injectSsrFlag(args[0], environment));
164
- };
165
- if ('handler' in hook) {
166
- return {
167
- ...hook,
168
- handler
169
- };
170
- }
171
- return handler;
127
+ if (!hook) return;
128
+ const fn = getHookHandler(hook);
129
+ const handler = function(id, ...args) {
130
+ return fn.call(injectEnvironmentInContext(this, environment), id, injectSsrFlag(args[0], environment));
131
+ };
132
+ if ("handler" in hook) return {
133
+ ...hook,
134
+ handler
135
+ };
136
+ return handler;
172
137
  }
173
138
  function wrapEnvironmentTransform(environment, hook) {
174
- if (!hook) {
175
- return;
176
- }
177
- const fn = getHookHandler(hook);
178
- const handler = function (code, importer, ...args) {
179
- return fn.call(injectEnvironmentInContext(this, environment), code, importer, injectSsrFlag(args[0], environment));
180
- };
181
- if ('handler' in hook) {
182
- return {
183
- ...hook,
184
- handler
185
- };
186
- }
187
- return handler;
139
+ if (!hook) return;
140
+ const fn = getHookHandler(hook);
141
+ const handler = function(code, importer, ...args) {
142
+ return fn.call(injectEnvironmentInContext(this, environment), code, importer, injectSsrFlag(args[0], environment));
143
+ };
144
+ if ("handler" in hook) return {
145
+ ...hook,
146
+ handler
147
+ };
148
+ return handler;
188
149
  }
189
150
  function wrapEnvironmentHook(environment, hook) {
190
- if (!hook) {
191
- return;
192
- }
193
- const fn = getHookHandler(hook);
194
- if (typeof fn !== 'function') {
195
- return hook;
196
- }
197
- const handler = function (...args) {
198
- return fn.call(injectEnvironmentInContext(this, environment), ...args);
199
- };
200
- if ('handler' in hook) {
201
- return {
202
- ...hook,
203
- handler
204
- };
205
- }
206
- return handler;
151
+ if (!hook) return;
152
+ const fn = getHookHandler(hook);
153
+ if (typeof fn !== "function") return hook;
154
+ const handler = function(...args) {
155
+ return fn.call(injectEnvironmentInContext(this, environment), ...args);
156
+ };
157
+ if ("handler" in hook) return {
158
+ ...hook,
159
+ handler
160
+ };
161
+ return handler;
207
162
  }
208
163
  function injectEnvironmentInContext(context, environment) {
209
- context.environment ??= environment;
210
- return context;
164
+ context.environment ??= environment;
165
+ return context;
211
166
  }
212
167
  function injectSsrFlag(options, environment) {
213
- const ssr = environment ? environment.config.consumer === 'server' : true;
214
- return { ...(options ?? {}), ssr };
168
+ const ssr = environment ? environment.config.consumer === "server" : true;
169
+ return {
170
+ ...options ?? {},
171
+ ssr
172
+ };
215
173
  }
216
-
174
+ //#endregion
217
175
  export { createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, toOutputFilePathInJS };
@@ -0,0 +1,54 @@
1
+ /*!
2
+ * alphaTab Vite Plugin v1.8.3 (, build 32)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
+ *
12
+ * MIT License
13
+ * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ * copies of the Software, and to permit persons to whom the Software is
20
+ * furnished to do so, subject to the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be included in all
23
+ * copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ * SOFTWARE.
32
+ *
33
+ * @preserve
34
+ * @license
35
+ */
36
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
37
+ //#region src/bridge/bundler.ts
38
+ /**
39
+ * @internal
40
+ */
41
+ var BundlerKind = /* @__PURE__ */ function(BundlerKind) {
42
+ BundlerKind["Rollup"] = "rollup";
43
+ BundlerKind["Rolldown"] = "rolldown";
44
+ return BundlerKind;
45
+ }({});
46
+ /**
47
+ * @internal
48
+ */
49
+ function detectBundler(config) {
50
+ return "rolldownOptions" in config.worker ? "rolldown" : "rollup";
51
+ }
52
+ //#endregion
53
+ exports.BundlerKind = BundlerKind;
54
+ exports.detectBundler = detectBundler;
@@ -0,0 +1,52 @@
1
+ /*!
2
+ * alphaTab Vite Plugin v1.8.3 (, build 32)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
+ *
12
+ * MIT License
13
+ * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ * copies of the Software, and to permit persons to whom the Software is
20
+ * furnished to do so, subject to the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be included in all
23
+ * copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ * SOFTWARE.
32
+ *
33
+ * @preserve
34
+ * @license
35
+ */
36
+ //#region src/bridge/bundler.ts
37
+ /**
38
+ * @internal
39
+ */
40
+ var BundlerKind = /* @__PURE__ */ function(BundlerKind) {
41
+ BundlerKind["Rollup"] = "rollup";
42
+ BundlerKind["Rolldown"] = "rolldown";
43
+ return BundlerKind;
44
+ }({});
45
+ /**
46
+ * @internal
47
+ */
48
+ function detectBundler(config) {
49
+ return "rolldownOptions" in config.worker ? "rolldown" : "rollup";
50
+ }
51
+ //#endregion
52
+ export { BundlerKind, detectBundler };
@@ -1,38 +1,35 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.8.1 (, build 30)
3
- *
4
- * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
- *
6
- * This Source Code Form is subject to the terms of the Mozilla Public
7
- * License, v. 2.0. If a copy of the MPL was not distributed with this
8
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
- *
10
- * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
- *
12
- * MIT License
13
- * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
- *
15
- * Permission is hereby granted, free of charge, to any person obtaining a copy
16
- * of this software and associated documentation files (the "Software"), to deal
17
- * in the Software without restriction, including without limitation the rights
18
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
- * copies of the Software, and to permit persons to whom the Software is
20
- * furnished to do so, subject to the following conditions:
21
- *
22
- * The above copyright notice and this permission notice shall be included in all
23
- * copies or substantial portions of the Software.
24
- *
25
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
- * SOFTWARE.
32
- *
33
- * @preserve
34
- * @license
35
- */
36
-
37
- 'use strict';
38
-
2
+ * alphaTab Vite Plugin v1.8.3 (, build 32)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
+ *
12
+ * MIT License
13
+ * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ * copies of the Software, and to permit persons to whom the Software is
20
+ * furnished to do so, subject to the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be included in all
23
+ * copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ * SOFTWARE.
32
+ *
33
+ * @preserve
34
+ * @license
35
+ */
@@ -1,36 +1,35 @@
1
1
  /*!
2
- * alphaTab Vite Plugin v1.8.1 (, build 30)
3
- *
4
- * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
- *
6
- * This Source Code Form is subject to the terms of the Mozilla Public
7
- * License, v. 2.0. If a copy of the MPL was not distributed with this
8
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
- *
10
- * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
- *
12
- * MIT License
13
- * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
- *
15
- * Permission is hereby granted, free of charge, to any person obtaining a copy
16
- * of this software and associated documentation files (the "Software"), to deal
17
- * in the Software without restriction, including without limitation the rights
18
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
- * copies of the Software, and to permit persons to whom the Software is
20
- * furnished to do so, subject to the following conditions:
21
- *
22
- * The above copyright notice and this permission notice shall be included in all
23
- * copies or substantial portions of the Software.
24
- *
25
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
- * SOFTWARE.
32
- *
33
- * @preserve
34
- * @license
35
- */
36
-
2
+ * alphaTab Vite Plugin v1.8.3 (, build 32)
3
+ *
4
+ * Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
5
+ *
6
+ * This Source Code Form is subject to the terms of the Mozilla Public
7
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
+ *
10
+ * This library uses code from Vite (https://github.com/vitejs/vite/), licensed under:
11
+ *
12
+ * MIT License
13
+ * Copyright (c) 2019-present, Yuxi (Evan) You and Vite contributors
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ * copies of the Software, and to permit persons to whom the Software is
20
+ * furnished to do so, subject to the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be included in all
23
+ * copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ * SOFTWARE.
32
+ *
33
+ * @preserve
34
+ * @license
35
+ */