@coderline/alphatab-vite 1.9.0-alpha.1860 → 1.9.0-alpha.1883
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/AlphaTabVitePluginOptions.cjs +1 -1
- package/dist/AlphaTabVitePluginOptions.mjs +1 -1
- package/dist/alphaTab.vite.cjs +1 -1
- package/dist/alphaTab.vite.mjs +1 -1
- package/dist/alphaTabVitePlugin.cjs +1 -1
- package/dist/alphaTabVitePlugin.mjs +1 -1
- package/dist/bridge/asset.cjs +3 -2
- package/dist/bridge/asset.mjs +3 -2
- package/dist/bridge/build.cjs +2 -4
- package/dist/bridge/build.mjs +2 -4
- package/dist/bridge/bundler.cjs +1 -1
- package/dist/bridge/bundler.mjs +1 -1
- package/dist/bridge/config.cjs +1 -1
- package/dist/bridge/config.mjs +1 -1
- package/dist/bridge/constants.cjs +1 -1
- package/dist/bridge/constants.mjs +1 -1
- package/dist/bridge/fsUtils.cjs +1 -1
- package/dist/bridge/fsUtils.mjs +1 -1
- package/dist/bridge/index.cjs +1 -1
- package/dist/bridge/index.mjs +1 -1
- package/dist/bridge/optimizer.cjs +5 -2
- package/dist/bridge/optimizer.mjs +5 -2
- package/dist/bridge/plugins.cjs +1 -1
- package/dist/bridge/plugins.mjs +1 -1
- package/dist/bridge/resolve.cjs +1 -1
- package/dist/bridge/resolve.mjs +1 -1
- package/dist/bridge/typeUtils.cjs +1 -1
- package/dist/bridge/typeUtils.mjs +1 -1
- package/dist/bridge/utils.cjs +1 -1
- package/dist/bridge/utils.mjs +1 -1
- package/dist/bridge/worker.cjs +3 -2
- package/dist/bridge/worker.mjs +3 -2
- package/dist/copyAssetsPlugin.cjs +1 -1
- package/dist/copyAssetsPlugin.mjs +1 -1
- package/dist/detectionGlobalPlugin.cjs +1 -1
- package/dist/detectionGlobalPlugin.mjs +1 -1
- package/dist/dist.cjs +587 -501
- package/dist/dist.mjs +586 -501
- package/dist/importMetaPlugin.cjs +2 -4
- package/dist/importMetaPlugin.mjs +2 -4
- package/dist/{prompt-B1Yc1NPt.cjs → prompt-CH6TK0bC.cjs} +63 -25
- package/dist/{prompt-B1Yc1NPt.mjs → prompt-CH6TK0bC.mjs} +63 -25
- package/dist/rolldown-runtime.cjs +2 -2
- package/dist/workerPlugin.cjs +6 -6
- package/dist/workerPlugin.mjs +6 -6
- package/package.json +3 -3
package/dist/alphaTab.vite.cjs
CHANGED
package/dist/alphaTab.vite.mjs
CHANGED
package/dist/bridge/asset.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -50,7 +50,8 @@ async function fileToUrl(id, config) {
|
|
|
50
50
|
let rtn;
|
|
51
51
|
if (id.startsWith(require_bridge_utils.withTrailingSlash(config.root))) rtn = `/${node_path.posix.relative(config.root, id)}`;
|
|
52
52
|
else rtn = node_path.posix.join(FS_PREFIX, id);
|
|
53
|
-
|
|
53
|
+
const base = require_bridge_utils.joinUrlSegments(config.server?.origin ?? "", config.base);
|
|
54
|
+
return require_bridge_utils.joinUrlSegments(base, require_bridge_utils.removeLeadingSlash(rtn));
|
|
54
55
|
}
|
|
55
56
|
//#endregion
|
|
56
57
|
exports.FS_PREFIX = FS_PREFIX;
|
package/dist/bridge/asset.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -47,7 +47,8 @@ async function fileToUrl(id, config) {
|
|
|
47
47
|
let rtn;
|
|
48
48
|
if (id.startsWith(withTrailingSlash(config.root))) rtn = `/${path$1.posix.relative(config.root, id)}`;
|
|
49
49
|
else rtn = path$1.posix.join(FS_PREFIX, id);
|
|
50
|
-
|
|
50
|
+
const base = joinUrlSegments(config.server?.origin ?? "", config.base);
|
|
51
|
+
return joinUrlSegments(base, removeLeadingSlash(rtn));
|
|
51
52
|
}
|
|
52
53
|
//#endregion
|
|
53
54
|
export { FS_PREFIX, fileToUrl };
|
package/dist/bridge/build.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -108,9 +108,7 @@ function injectEnvironmentToHooks(environment, plugin) {
|
|
|
108
108
|
case "transform":
|
|
109
109
|
clone[hook] = wrapEnvironmentTransform(environment, transform);
|
|
110
110
|
break;
|
|
111
|
-
default:
|
|
112
|
-
if (require_bridge_constants.ROLLUP_HOOKS.includes(hook)) clone[hook] = wrapEnvironmentHook(environment, clone[hook]);
|
|
113
|
-
break;
|
|
111
|
+
default: if (require_bridge_constants.ROLLUP_HOOKS.includes(hook)) clone[hook] = wrapEnvironmentHook(environment, clone[hook]);
|
|
114
112
|
}
|
|
115
113
|
return clone;
|
|
116
114
|
}
|
package/dist/bridge/build.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -105,9 +105,7 @@ function injectEnvironmentToHooks(environment, plugin) {
|
|
|
105
105
|
case "transform":
|
|
106
106
|
clone[hook] = wrapEnvironmentTransform(environment, transform);
|
|
107
107
|
break;
|
|
108
|
-
default:
|
|
109
|
-
if (ROLLUP_HOOKS.includes(hook)) clone[hook] = wrapEnvironmentHook(environment, clone[hook]);
|
|
110
|
-
break;
|
|
108
|
+
default: if (ROLLUP_HOOKS.includes(hook)) clone[hook] = wrapEnvironmentHook(environment, clone[hook]);
|
|
111
109
|
}
|
|
112
110
|
return clone;
|
|
113
111
|
}
|
package/dist/bridge/bundler.cjs
CHANGED
package/dist/bridge/bundler.mjs
CHANGED
package/dist/bridge/config.cjs
CHANGED
package/dist/bridge/config.mjs
CHANGED
package/dist/bridge/fsUtils.cjs
CHANGED
package/dist/bridge/fsUtils.mjs
CHANGED
package/dist/bridge/index.cjs
CHANGED
package/dist/bridge/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -52,7 +52,10 @@ function tryOptimizedDepResolve(config, ssr, url, depId, preserveSymlinks) {
|
|
|
52
52
|
if (optimizer?.isOptimizedDepFile(depId)) {
|
|
53
53
|
const depFile = require_bridge_utils.cleanUrl(depId);
|
|
54
54
|
const depSrc = optimizedDepInfoFromFile(optimizer.metadata, depFile)?.src;
|
|
55
|
-
if (depSrc)
|
|
55
|
+
if (depSrc) {
|
|
56
|
+
const resolvedFile = node_path.resolve(node_path.dirname(depSrc), url);
|
|
57
|
+
return require_bridge_resolve.tryFsResolve(resolvedFile, preserveSymlinks);
|
|
58
|
+
}
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
61
|
var depsOptimizerMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -48,7 +48,10 @@ function tryOptimizedDepResolve(config, ssr, url, depId, preserveSymlinks) {
|
|
|
48
48
|
if (optimizer?.isOptimizedDepFile(depId)) {
|
|
49
49
|
const depFile = cleanUrl(depId);
|
|
50
50
|
const depSrc = optimizedDepInfoFromFile(optimizer.metadata, depFile)?.src;
|
|
51
|
-
if (depSrc)
|
|
51
|
+
if (depSrc) {
|
|
52
|
+
const resolvedFile = path$1.resolve(path$1.dirname(depSrc), url);
|
|
53
|
+
return tryFsResolve(resolvedFile, preserveSymlinks);
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
var depsOptimizerMap = /* @__PURE__ */ new WeakMap();
|
package/dist/bridge/plugins.cjs
CHANGED
package/dist/bridge/plugins.mjs
CHANGED
package/dist/bridge/resolve.cjs
CHANGED
package/dist/bridge/resolve.mjs
CHANGED
package/dist/bridge/utils.cjs
CHANGED
package/dist/bridge/utils.mjs
CHANGED
package/dist/bridge/worker.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -97,7 +97,8 @@ async function bundleWorkerEntry(config, id) {
|
|
|
97
97
|
const { plugins, format } = config.worker;
|
|
98
98
|
const workerOptionsCarrier = config.worker;
|
|
99
99
|
const workerBundlerOptions = workerOptionsCarrier.rolldownOptions ?? workerOptionsCarrier.rollupOptions;
|
|
100
|
-
const
|
|
100
|
+
const workerConfig = await plugins(newBundleChain);
|
|
101
|
+
const workerEnvironment = new vite.BuildEnvironment("client", workerConfig);
|
|
101
102
|
await workerEnvironment.init();
|
|
102
103
|
const wrappedPlugins = workerEnvironment.plugins.map((p) => require_bridge_build.injectEnvironmentToHooks(workerEnvironment, p));
|
|
103
104
|
const workerOutputConfig = workerBundlerOptions.output;
|
package/dist/bridge/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.9.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.9.0-alpha.1883 (develop, build 1883)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2026, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -94,7 +94,8 @@ async function bundleWorkerEntry(config, id) {
|
|
|
94
94
|
const { plugins, format } = config.worker;
|
|
95
95
|
const workerOptionsCarrier = config.worker;
|
|
96
96
|
const workerBundlerOptions = workerOptionsCarrier.rolldownOptions ?? workerOptionsCarrier.rollupOptions;
|
|
97
|
-
const
|
|
97
|
+
const workerConfig = await plugins(newBundleChain);
|
|
98
|
+
const workerEnvironment = new BuildEnvironment("client", workerConfig);
|
|
98
99
|
await workerEnvironment.init();
|
|
99
100
|
const wrappedPlugins = workerEnvironment.plugins.map((p) => injectEnvironmentToHooks(workerEnvironment, p));
|
|
100
101
|
const workerOutputConfig = workerBundlerOptions.output;
|