@coderline/alphatab-vite 1.8.0-alpha.1645 → 1.8.0-alpha.1647
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 +3 -1
- package/dist/alphaTabVitePlugin.mjs +3 -1
- package/dist/bridge/asset.cjs +1 -1
- package/dist/bridge/asset.mjs +1 -1
- package/dist/bridge/build.cjs +1 -1
- package/dist/bridge/build.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 +1 -1
- package/dist/bridge/optimizer.mjs +1 -1
- 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 +1 -1
- package/dist/bridge/worker.mjs +1 -1
- package/dist/copyAssetsPlugin.cjs +1 -1
- package/dist/copyAssetsPlugin.mjs +1 -1
- package/dist/detectionGlobalPlugin.cjs +73 -0
- package/dist/detectionGlobalPlugin.d.ts +4 -0
- package/dist/detectionGlobalPlugin.mjs +69 -0
- package/dist/importMetaPlugin.cjs +1 -1
- package/dist/importMetaPlugin.mjs +1 -1
- package/dist/workerPlugin.cjs +1 -1
- package/dist/workerPlugin.mjs +1 -1
- package/package.json +2 -2
package/dist/alphaTab.vite.cjs
CHANGED
package/dist/alphaTab.vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.8.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.8.0-alpha.1647 (develop, build 1647)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
40
40
|
|
|
41
|
+
const detectionGlobalPlugin = require('./detectionGlobalPlugin.cjs');
|
|
41
42
|
const copyAssetsPlugin = require('./copyAssetsPlugin.cjs');
|
|
42
43
|
const importMetaPlugin = require('./importMetaPlugin.cjs');
|
|
43
44
|
const workerPlugin = require('./workerPlugin.cjs');
|
|
@@ -48,6 +49,7 @@ const workerPlugin = require('./workerPlugin.cjs');
|
|
|
48
49
|
function alphaTab(options) {
|
|
49
50
|
const plugins = [];
|
|
50
51
|
options ??= {};
|
|
52
|
+
plugins.push(detectionGlobalPlugin.detectionGlobalPlugin());
|
|
51
53
|
plugins.push(importMetaPlugin.importMetaUrlPlugin(options));
|
|
52
54
|
plugins.push(workerPlugin.workerPlugin(options));
|
|
53
55
|
plugins.push(copyAssetsPlugin.copyAssetsPlugin(options));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab Vite Plugin v1.8.0-alpha.
|
|
2
|
+
* alphaTab Vite Plugin v1.8.0-alpha.1647 (develop, build 1647)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
* @license
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
|
+
import { detectionGlobalPlugin } from './detectionGlobalPlugin.mjs';
|
|
37
38
|
import { copyAssetsPlugin } from './copyAssetsPlugin.mjs';
|
|
38
39
|
import { importMetaUrlPlugin } from './importMetaPlugin.mjs';
|
|
39
40
|
import { workerPlugin } from './workerPlugin.mjs';
|
|
@@ -44,6 +45,7 @@ import { workerPlugin } from './workerPlugin.mjs';
|
|
|
44
45
|
function alphaTab(options) {
|
|
45
46
|
const plugins = [];
|
|
46
47
|
options ??= {};
|
|
48
|
+
plugins.push(detectionGlobalPlugin());
|
|
47
49
|
plugins.push(importMetaUrlPlugin(options));
|
|
48
50
|
plugins.push(workerPlugin(options));
|
|
49
51
|
plugins.push(copyAssetsPlugin(options));
|
package/dist/bridge/asset.cjs
CHANGED
package/dist/bridge/asset.mjs
CHANGED
package/dist/bridge/build.cjs
CHANGED
package/dist/bridge/build.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
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
package/dist/bridge/worker.mjs
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* alphaTab Vite Plugin v1.8.0-alpha.1647 (develop, build 1647)
|
|
3
|
+
*
|
|
4
|
+
* Copyright © 2025, 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
|
+
|
|
39
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
40
|
+
|
|
41
|
+
const MagicString = require('magic-string');
|
|
42
|
+
|
|
43
|
+
const marker = '__ALPHATAB_VITE__';
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
function detectionGlobalPlugin() {
|
|
48
|
+
let resolvedConfig;
|
|
49
|
+
return {
|
|
50
|
+
name: 'vite-plugin-alphatab-global',
|
|
51
|
+
configResolved(config) {
|
|
52
|
+
resolvedConfig = config;
|
|
53
|
+
},
|
|
54
|
+
shouldTransformCachedModule({ code }) {
|
|
55
|
+
return code.includes(marker);
|
|
56
|
+
},
|
|
57
|
+
async transform(code, id) {
|
|
58
|
+
if (!code.includes(marker)) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const s = new MagicString(code);
|
|
62
|
+
s.replaceAll(marker, JSON.stringify(true));
|
|
63
|
+
return {
|
|
64
|
+
code: s.toString(),
|
|
65
|
+
map: resolvedConfig.command === 'build' && resolvedConfig.build.sourcemap
|
|
66
|
+
? s.generateMap({ hires: 'boundary', source: id })
|
|
67
|
+
: null
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
exports.detectionGlobalPlugin = detectionGlobalPlugin;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* alphaTab Vite Plugin v1.8.0-alpha.1647 (develop, build 1647)
|
|
3
|
+
*
|
|
4
|
+
* Copyright © 2025, 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 MagicString from 'magic-string';
|
|
38
|
+
|
|
39
|
+
const marker = '__ALPHATAB_VITE__';
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
function detectionGlobalPlugin() {
|
|
44
|
+
let resolvedConfig;
|
|
45
|
+
return {
|
|
46
|
+
name: 'vite-plugin-alphatab-global',
|
|
47
|
+
configResolved(config) {
|
|
48
|
+
resolvedConfig = config;
|
|
49
|
+
},
|
|
50
|
+
shouldTransformCachedModule({ code }) {
|
|
51
|
+
return code.includes(marker);
|
|
52
|
+
},
|
|
53
|
+
async transform(code, id) {
|
|
54
|
+
if (!code.includes(marker)) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const s = new MagicString(code);
|
|
58
|
+
s.replaceAll(marker, JSON.stringify(true));
|
|
59
|
+
return {
|
|
60
|
+
code: s.toString(),
|
|
61
|
+
map: resolvedConfig.command === 'build' && resolvedConfig.build.sourcemap
|
|
62
|
+
? s.generateMap({ hires: 'boundary', source: id })
|
|
63
|
+
: null
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { detectionGlobalPlugin };
|
package/dist/workerPlugin.cjs
CHANGED
package/dist/workerPlugin.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderline/alphatab-vite",
|
|
3
|
-
"version": "1.8.0-alpha.
|
|
3
|
+
"version": "1.8.0-alpha.1647",
|
|
4
4
|
"description": "A plugin for Vite to bundle alphaTab into your webapps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"guitar",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@biomejs/biome": "^2.2.6",
|
|
53
|
-
"@microsoft/api-extractor": "^7.
|
|
53
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
54
54
|
"@types/chai": "^5.2.3",
|
|
55
55
|
"@types/mocha": "^10.0.10",
|
|
56
56
|
"@types/node": "^24.10.0",
|