@coderline/alphatab-webpack 1.8.0-alpha.1643 → 1.8.0-alpha.1646
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/AlphaTabAudioWorklet.cjs +1 -1
- package/dist/AlphaTabAudioWorklet.mjs +1 -1
- package/dist/AlphaTabWebPackPlugin.cjs +3 -1
- package/dist/AlphaTabWebPackPlugin.mjs +3 -1
- package/dist/AlphaTabWebPackPluginOptions.cjs +1 -1
- package/dist/AlphaTabWebPackPluginOptions.mjs +1 -1
- package/dist/AlphaTabWebWorker.cjs +1 -1
- package/dist/AlphaTabWebWorker.mjs +1 -1
- package/dist/AlphaTabWebWorkerDependency.cjs +1 -1
- package/dist/AlphaTabWebWorkerDependency.mjs +1 -1
- package/dist/AlphaTabWorkerRuntimeModule.cjs +1 -1
- package/dist/AlphaTabWorkerRuntimeModule.mjs +1 -1
- package/dist/AlphaTabWorkletDependency.cjs +1 -1
- package/dist/AlphaTabWorkletDependency.mjs +1 -1
- package/dist/AlphaTabWorkletStartRuntimeModule.cjs +1 -1
- package/dist/AlphaTabWorkletStartRuntimeModule.mjs +1 -1
- package/dist/DetectionGlobal.cjs +57 -0
- package/dist/DetectionGlobal.mjs +53 -0
- package/dist/Utils.cjs +1 -1
- package/dist/Utils.mjs +1 -1
- package/dist/alphaTab.webpack.cjs +1 -1
- package/dist/alphaTab.webpack.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab WebPack Plugin v1.8.0-alpha.
|
|
2
|
+
* alphaTab WebPack Plugin v1.8.0-alpha.1646 (develop, build 1646)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -47,6 +47,7 @@ const AlphaTabWebWorker = require('./AlphaTabWebWorker.cjs');
|
|
|
47
47
|
const AlphaTabWebWorkerDependency = require('./AlphaTabWebWorkerDependency.cjs');
|
|
48
48
|
const AlphaTabWorkletStartRuntimeModule = require('./AlphaTabWorkletStartRuntimeModule.cjs');
|
|
49
49
|
const AlphaTabWorkletDependency = require('./AlphaTabWorkletDependency.cjs');
|
|
50
|
+
const DetectionGlobal = require('./DetectionGlobal.cjs');
|
|
50
51
|
|
|
51
52
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
52
53
|
function _interopNamespaceDefault(e) {
|
|
@@ -227,6 +228,7 @@ class AlphaTabWebPackPlugin {
|
|
|
227
228
|
AlphaTabAudioWorklet.configureAudioWorklet(this._webPackWithAlphaTab, pluginName, this.options, compiler, compilation, normalModuleFactory, cachedContextify);
|
|
228
229
|
AlphaTabWebWorker.configureWebWorker(this._webPackWithAlphaTab, pluginName, this.options, compiler, compilation, normalModuleFactory, cachedContextify);
|
|
229
230
|
this._configureAssetCopy(this._webPackWithAlphaTab, pluginName, compiler, compilation);
|
|
231
|
+
DetectionGlobal.configureDetectionGlobal(pluginName, normalModuleFactory);
|
|
230
232
|
});
|
|
231
233
|
}
|
|
232
234
|
_configureAssetCopy(webPackWithAlphaTab, pluginName, compiler, compilation) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* alphaTab WebPack Plugin v1.8.0-alpha.
|
|
2
|
+
* alphaTab WebPack Plugin v1.8.0-alpha.1646 (develop, build 1646)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -43,6 +43,7 @@ import { configureWebWorker } from './AlphaTabWebWorker.mjs';
|
|
|
43
43
|
import { injectWebWorkerDependency } from './AlphaTabWebWorkerDependency.mjs';
|
|
44
44
|
import { injectWorkletRuntimeModule } from './AlphaTabWorkletStartRuntimeModule.mjs';
|
|
45
45
|
import { injectWorkletDependency } from './AlphaTabWorkletDependency.mjs';
|
|
46
|
+
import { configureDetectionGlobal } from './DetectionGlobal.mjs';
|
|
46
47
|
|
|
47
48
|
/**@target web */
|
|
48
49
|
const WINDOWS_ABS_PATH_REGEXP = /^[a-zA-Z]:[\\/]/;
|
|
@@ -202,6 +203,7 @@ class AlphaTabWebPackPlugin {
|
|
|
202
203
|
configureAudioWorklet(this._webPackWithAlphaTab, pluginName, this.options, compiler, compilation, normalModuleFactory, cachedContextify);
|
|
203
204
|
configureWebWorker(this._webPackWithAlphaTab, pluginName, this.options, compiler, compilation, normalModuleFactory, cachedContextify);
|
|
204
205
|
this._configureAssetCopy(this._webPackWithAlphaTab, pluginName, compiler, compilation);
|
|
206
|
+
configureDetectionGlobal(pluginName, normalModuleFactory);
|
|
205
207
|
});
|
|
206
208
|
}
|
|
207
209
|
_configureAssetCopy(webPackWithAlphaTab, pluginName, compiler, compilation) {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* alphaTab WebPack Plugin v1.8.0-alpha.1646 (develop, build 1646)
|
|
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 WebPack (https://github.com/webpack/webpack/), licensed under:
|
|
11
|
+
*
|
|
12
|
+
* Copyright JS Foundation and other contributors
|
|
13
|
+
*
|
|
14
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
15
|
+
* a copy of this software and associated documentation files (the
|
|
16
|
+
* 'Software'), to deal in the Software without restriction, including
|
|
17
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
18
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
19
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
20
|
+
* the following conditions:
|
|
21
|
+
*
|
|
22
|
+
* The above copyright notice and this permission notice shall be
|
|
23
|
+
* included in all copies or substantial portions of the Software.
|
|
24
|
+
*
|
|
25
|
+
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
26
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
27
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
28
|
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
29
|
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
30
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
31
|
+
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
32
|
+
*
|
|
33
|
+
* @preserve
|
|
34
|
+
* @license
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
'use strict';
|
|
38
|
+
|
|
39
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
40
|
+
|
|
41
|
+
const Utils = require('./Utils.cjs');
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
function configureDetectionGlobal(pluginName, normalModuleFactory) {
|
|
47
|
+
const parserPlugin = (parser) => {
|
|
48
|
+
parser.hooks.evaluateIdentifier.for('__ALPHATAB_WEBPACK__').tap(pluginName, (expr) => {
|
|
49
|
+
const res = parser.evaluate('true');
|
|
50
|
+
res.setRange(expr.range);
|
|
51
|
+
return res;
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
Utils.tapJavaScript(normalModuleFactory, pluginName, parserPlugin);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
exports.configureDetectionGlobal = configureDetectionGlobal;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* alphaTab WebPack Plugin v1.8.0-alpha.1646 (develop, build 1646)
|
|
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 WebPack (https://github.com/webpack/webpack/), licensed under:
|
|
11
|
+
*
|
|
12
|
+
* Copyright JS Foundation and other contributors
|
|
13
|
+
*
|
|
14
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
15
|
+
* a copy of this software and associated documentation files (the
|
|
16
|
+
* 'Software'), to deal in the Software without restriction, including
|
|
17
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
18
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
19
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
20
|
+
* the following conditions:
|
|
21
|
+
*
|
|
22
|
+
* The above copyright notice and this permission notice shall be
|
|
23
|
+
* included in all copies or substantial portions of the Software.
|
|
24
|
+
*
|
|
25
|
+
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
26
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
27
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
28
|
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
29
|
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
30
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
31
|
+
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
32
|
+
*
|
|
33
|
+
* @preserve
|
|
34
|
+
* @license
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
import { tapJavaScript } from './Utils.mjs';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
function configureDetectionGlobal(pluginName, normalModuleFactory) {
|
|
43
|
+
const parserPlugin = (parser) => {
|
|
44
|
+
parser.hooks.evaluateIdentifier.for('__ALPHATAB_WEBPACK__').tap(pluginName, (expr) => {
|
|
45
|
+
const res = parser.evaluate('true');
|
|
46
|
+
res.setRange(expr.range);
|
|
47
|
+
return res;
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
tapJavaScript(normalModuleFactory, pluginName, parserPlugin);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { configureDetectionGlobal };
|
package/dist/Utils.cjs
CHANGED
package/dist/Utils.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderline/alphatab-webpack",
|
|
3
|
-
"version": "1.8.0-alpha.
|
|
3
|
+
"version": "1.8.0-alpha.1646",
|
|
4
4
|
"description": "A plugin for WebPack to bundle alphaTab into your webapps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"guitar",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test": "mocha"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"webpack": "^5.
|
|
45
|
+
"webpack": "^5.103.0"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=20.19.0"
|