@rollup/wasm-node 4.50.2 → 4.51.0
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/bin/rollup +3 -3
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +34 -22
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +34 -22
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm.js +27 -42
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +13 -13
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.51.0
|
|
5
|
+
Fri, 19 Sep 2025 08:58:25 GMT - commit 1748736f5baae39b9560399606bba137747df048
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -1444,7 +1444,7 @@ function prettyMilliseconds(milliseconds, options) {
|
|
|
1444
1444
|
if (
|
|
1445
1445
|
options.separateMilliseconds
|
|
1446
1446
|
|| options.formatSubMilliseconds
|
|
1447
|
-
|| (!options.colonNotation && milliseconds < 1000)
|
|
1447
|
+
|| (!options.colonNotation && milliseconds < 1000 && !options.subSecondsAsDecimals)
|
|
1448
1448
|
) {
|
|
1449
1449
|
const seconds = Number(parsed.seconds);
|
|
1450
1450
|
const milliseconds = Number(parsed.milliseconds);
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.51.0
|
|
4
|
+
Fri, 19 Sep 2025 08:58:25 GMT - commit 1748736f5baae39b9560399606bba137747df048
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.
|
|
30
|
+
var version = "4.51.0";
|
|
31
31
|
|
|
32
32
|
// src/vlq.ts
|
|
33
33
|
var comma = ",".charCodeAt(0);
|
|
@@ -7692,6 +7692,7 @@ function resolveNamespaceVariables(baseVariable, path, astContext) {
|
|
|
7692
7692
|
}
|
|
7693
7693
|
|
|
7694
7694
|
const FILE_PREFIX = 'ROLLUP_FILE_URL_';
|
|
7695
|
+
const FILE_OBJ_PREFIX = 'ROLLUP_FILE_URL_OBJ_';
|
|
7695
7696
|
const IMPORT = 'import';
|
|
7696
7697
|
class MetaProperty extends NodeBase {
|
|
7697
7698
|
constructor() {
|
|
@@ -7702,8 +7703,13 @@ class MetaProperty extends NodeBase {
|
|
|
7702
7703
|
}
|
|
7703
7704
|
getReferencedFileName(outputPluginDriver) {
|
|
7704
7705
|
const { meta: { name }, metaProperty } = this;
|
|
7705
|
-
if (name === IMPORT
|
|
7706
|
-
|
|
7706
|
+
if (name === IMPORT) {
|
|
7707
|
+
if (metaProperty?.startsWith(FILE_OBJ_PREFIX)) {
|
|
7708
|
+
return outputPluginDriver.getFileName(metaProperty.slice(FILE_OBJ_PREFIX.length));
|
|
7709
|
+
}
|
|
7710
|
+
else if (metaProperty?.startsWith(FILE_PREFIX)) {
|
|
7711
|
+
return outputPluginDriver.getFileName(metaProperty.slice(FILE_PREFIX.length));
|
|
7712
|
+
}
|
|
7707
7713
|
}
|
|
7708
7714
|
return null;
|
|
7709
7715
|
}
|
|
@@ -7726,7 +7732,10 @@ class MetaProperty extends NodeBase {
|
|
|
7726
7732
|
parent instanceof MemberExpression && typeof parent.propertyKey === 'string'
|
|
7727
7733
|
? parent.propertyKey
|
|
7728
7734
|
: null);
|
|
7729
|
-
if (metaProperty?.startsWith(
|
|
7735
|
+
if (metaProperty?.startsWith(FILE_OBJ_PREFIX)) {
|
|
7736
|
+
this.referenceId = metaProperty.slice(FILE_OBJ_PREFIX.length);
|
|
7737
|
+
}
|
|
7738
|
+
else if (metaProperty?.startsWith(FILE_PREFIX)) {
|
|
7730
7739
|
this.referenceId = metaProperty.slice(FILE_PREFIX.length);
|
|
7731
7740
|
}
|
|
7732
7741
|
}
|
|
@@ -7741,9 +7750,10 @@ class MetaProperty extends NodeBase {
|
|
|
7741
7750
|
if (referenceId) {
|
|
7742
7751
|
const fileName = pluginDriver.getFileName(referenceId);
|
|
7743
7752
|
const relativePath = normalize(relative(dirname(chunkId), fileName));
|
|
7753
|
+
const isUrlObject = !!metaProperty?.startsWith(FILE_OBJ_PREFIX);
|
|
7744
7754
|
const replacement = pluginDriver.hookFirstSync('resolveFileUrl', [
|
|
7745
7755
|
{ chunkId, fileName, format, moduleId, referenceId, relativePath }
|
|
7746
|
-
]) || relativeUrlMechanisms[format](relativePath);
|
|
7756
|
+
]) || relativeUrlMechanisms[format](relativePath, isUrlObject);
|
|
7747
7757
|
code.overwrite(parent.start, parent.end, replacement, { contentOnly: true });
|
|
7748
7758
|
return;
|
|
7749
7759
|
}
|
|
@@ -7767,7 +7777,9 @@ class MetaProperty extends NodeBase {
|
|
|
7767
7777
|
}
|
|
7768
7778
|
setResolution(format, accessedGlobalsByScope, preliminaryChunkId) {
|
|
7769
7779
|
this.preliminaryChunkId = preliminaryChunkId;
|
|
7770
|
-
const accessedGlobals = (this.metaProperty?.startsWith(FILE_PREFIX)
|
|
7780
|
+
const accessedGlobals = (this.metaProperty?.startsWith(FILE_PREFIX) || this.metaProperty?.startsWith(FILE_OBJ_PREFIX)
|
|
7781
|
+
? accessedFileUrlGlobals
|
|
7782
|
+
: accessedMetaUrlGlobals)[format];
|
|
7771
7783
|
if (accessedGlobals.length > 0) {
|
|
7772
7784
|
this.scope.addAccessedGlobals(accessedGlobals, accessedGlobalsByScope);
|
|
7773
7785
|
}
|
|
@@ -7790,8 +7802,8 @@ const accessedFileUrlGlobals = {
|
|
|
7790
7802
|
system: ['module', 'URL'],
|
|
7791
7803
|
umd: ['document', 'require', 'URL']
|
|
7792
7804
|
};
|
|
7793
|
-
const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
|
|
7794
|
-
const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI
|
|
7805
|
+
const getResolveUrl = (path, asObject, URL = 'URL') => `new ${URL}(${path})${asObject ? '' : '.href'}`;
|
|
7806
|
+
const getRelativeUrlFromDocument = (relativePath, asObject, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`, asObject);
|
|
7795
7807
|
const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
7796
7808
|
const urlMechanism = getUrl(chunkId);
|
|
7797
7809
|
return property === null
|
|
@@ -7800,27 +7812,27 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
|
7800
7812
|
? urlMechanism
|
|
7801
7813
|
: 'undefined';
|
|
7802
7814
|
};
|
|
7803
|
-
const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
|
|
7804
|
-
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'
|
|
7815
|
+
const getFileUrlFromFullPath = (path, asObject) => `require('u' + 'rl').pathToFileURL(${path})${asObject ? '' : '.href'}`;
|
|
7816
|
+
const getFileUrlFromRelativePath = (path, asObject) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`, asObject);
|
|
7805
7817
|
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
7806
7818
|
const relativeUrlMechanisms = {
|
|
7807
|
-
amd: relativePath => {
|
|
7819
|
+
amd: (relativePath, asObject) => {
|
|
7808
7820
|
if (relativePath[0] !== '.')
|
|
7809
7821
|
relativePath = './' + relativePath;
|
|
7810
|
-
return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI
|
|
7822
|
+
return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI`, asObject);
|
|
7811
7823
|
},
|
|
7812
|
-
cjs: relativePath => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath)})`,
|
|
7813
|
-
es: relativePath => getResolveUrl(`'${escapeId(relativePath)}', import.meta.url
|
|
7814
|
-
iife: relativePath => getRelativeUrlFromDocument(relativePath),
|
|
7815
|
-
system: relativePath => getResolveUrl(`'${escapeId(relativePath)}', module.meta.url
|
|
7816
|
-
umd: relativePath => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath, true)})`
|
|
7824
|
+
cjs: (relativePath, asObject) => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath, asObject)} : ${getRelativeUrlFromDocument(relativePath, asObject)})`,
|
|
7825
|
+
es: (relativePath, asObject) => getResolveUrl(`'${escapeId(relativePath)}', import.meta.url`, asObject),
|
|
7826
|
+
iife: (relativePath, asObject) => getRelativeUrlFromDocument(relativePath, asObject),
|
|
7827
|
+
system: (relativePath, asObject) => getResolveUrl(`'${escapeId(relativePath)}', module.meta.url`, asObject),
|
|
7828
|
+
umd: (relativePath, asObject) => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath, asObject)} : ${getRelativeUrlFromDocument(relativePath, asObject, true)})`
|
|
7817
7829
|
};
|
|
7818
7830
|
const importMetaMechanisms = {
|
|
7819
|
-
amd: getGenericImportMetaMechanism(() => getResolveUrl(`module.uri, document.baseURI
|
|
7820
|
-
cjs: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' ? ${getFileUrlFromFullPath('__filename')} : ${getUrlFromDocument(chunkId)})`),
|
|
7831
|
+
amd: getGenericImportMetaMechanism(() => getResolveUrl(`module.uri, document.baseURI`, false)),
|
|
7832
|
+
cjs: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' ? ${getFileUrlFromFullPath('__filename', false)} : ${getUrlFromDocument(chunkId)})`),
|
|
7821
7833
|
iife: getGenericImportMetaMechanism(chunkId => getUrlFromDocument(chunkId)),
|
|
7822
7834
|
system: (property, { snippets: { getPropertyAccess } }) => property === null ? `module.meta` : `module.meta${getPropertyAccess(property)}`,
|
|
7823
|
-
umd: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromFullPath('__filename')} : ${getUrlFromDocument(chunkId, true)})`)
|
|
7835
|
+
umd: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromFullPath('__filename', false)} : ${getUrlFromDocument(chunkId, true)})`)
|
|
7824
7836
|
};
|
|
7825
7837
|
|
|
7826
7838
|
class UndefinedVariable extends Variable {
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.51.0
|
|
4
|
+
Fri, 19 Sep 2025 08:58:25 GMT - commit 1748736f5baae39b9560399606bba137747df048
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
|
|
|
42
42
|
|
|
43
43
|
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
44
|
|
|
45
|
-
var version = "4.
|
|
45
|
+
var version = "4.51.0";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
|
@@ -11468,6 +11468,7 @@ function resolveNamespaceVariables(baseVariable, path, astContext) {
|
|
|
11468
11468
|
}
|
|
11469
11469
|
|
|
11470
11470
|
const FILE_PREFIX = 'ROLLUP_FILE_URL_';
|
|
11471
|
+
const FILE_OBJ_PREFIX = 'ROLLUP_FILE_URL_OBJ_';
|
|
11471
11472
|
const IMPORT = 'import';
|
|
11472
11473
|
class MetaProperty extends NodeBase {
|
|
11473
11474
|
constructor() {
|
|
@@ -11478,8 +11479,13 @@ class MetaProperty extends NodeBase {
|
|
|
11478
11479
|
}
|
|
11479
11480
|
getReferencedFileName(outputPluginDriver) {
|
|
11480
11481
|
const { meta: { name }, metaProperty } = this;
|
|
11481
|
-
if (name === IMPORT
|
|
11482
|
-
|
|
11482
|
+
if (name === IMPORT) {
|
|
11483
|
+
if (metaProperty?.startsWith(FILE_OBJ_PREFIX)) {
|
|
11484
|
+
return outputPluginDriver.getFileName(metaProperty.slice(FILE_OBJ_PREFIX.length));
|
|
11485
|
+
}
|
|
11486
|
+
else if (metaProperty?.startsWith(FILE_PREFIX)) {
|
|
11487
|
+
return outputPluginDriver.getFileName(metaProperty.slice(FILE_PREFIX.length));
|
|
11488
|
+
}
|
|
11483
11489
|
}
|
|
11484
11490
|
return null;
|
|
11485
11491
|
}
|
|
@@ -11502,7 +11508,10 @@ class MetaProperty extends NodeBase {
|
|
|
11502
11508
|
parent instanceof MemberExpression && typeof parent.propertyKey === 'string'
|
|
11503
11509
|
? parent.propertyKey
|
|
11504
11510
|
: null);
|
|
11505
|
-
if (metaProperty?.startsWith(
|
|
11511
|
+
if (metaProperty?.startsWith(FILE_OBJ_PREFIX)) {
|
|
11512
|
+
this.referenceId = metaProperty.slice(FILE_OBJ_PREFIX.length);
|
|
11513
|
+
}
|
|
11514
|
+
else if (metaProperty?.startsWith(FILE_PREFIX)) {
|
|
11506
11515
|
this.referenceId = metaProperty.slice(FILE_PREFIX.length);
|
|
11507
11516
|
}
|
|
11508
11517
|
}
|
|
@@ -11517,9 +11526,10 @@ class MetaProperty extends NodeBase {
|
|
|
11517
11526
|
if (referenceId) {
|
|
11518
11527
|
const fileName = pluginDriver.getFileName(referenceId);
|
|
11519
11528
|
const relativePath = parseAst_js.normalize(path.relative(path.dirname(chunkId), fileName));
|
|
11529
|
+
const isUrlObject = !!metaProperty?.startsWith(FILE_OBJ_PREFIX);
|
|
11520
11530
|
const replacement = pluginDriver.hookFirstSync('resolveFileUrl', [
|
|
11521
11531
|
{ chunkId, fileName, format, moduleId, referenceId, relativePath }
|
|
11522
|
-
]) || relativeUrlMechanisms[format](relativePath);
|
|
11532
|
+
]) || relativeUrlMechanisms[format](relativePath, isUrlObject);
|
|
11523
11533
|
code.overwrite(parent.start, parent.end, replacement, { contentOnly: true });
|
|
11524
11534
|
return;
|
|
11525
11535
|
}
|
|
@@ -11543,7 +11553,9 @@ class MetaProperty extends NodeBase {
|
|
|
11543
11553
|
}
|
|
11544
11554
|
setResolution(format, accessedGlobalsByScope, preliminaryChunkId) {
|
|
11545
11555
|
this.preliminaryChunkId = preliminaryChunkId;
|
|
11546
|
-
const accessedGlobals = (this.metaProperty?.startsWith(FILE_PREFIX)
|
|
11556
|
+
const accessedGlobals = (this.metaProperty?.startsWith(FILE_PREFIX) || this.metaProperty?.startsWith(FILE_OBJ_PREFIX)
|
|
11557
|
+
? accessedFileUrlGlobals
|
|
11558
|
+
: accessedMetaUrlGlobals)[format];
|
|
11547
11559
|
if (accessedGlobals.length > 0) {
|
|
11548
11560
|
this.scope.addAccessedGlobals(accessedGlobals, accessedGlobalsByScope);
|
|
11549
11561
|
}
|
|
@@ -11566,8 +11578,8 @@ const accessedFileUrlGlobals = {
|
|
|
11566
11578
|
system: ['module', 'URL'],
|
|
11567
11579
|
umd: ['document', 'require', 'URL']
|
|
11568
11580
|
};
|
|
11569
|
-
const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
|
|
11570
|
-
const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI
|
|
11581
|
+
const getResolveUrl = (path, asObject, URL = 'URL') => `new ${URL}(${path})${asObject ? '' : '.href'}`;
|
|
11582
|
+
const getRelativeUrlFromDocument = (relativePath, asObject, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`, asObject);
|
|
11571
11583
|
const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
11572
11584
|
const urlMechanism = getUrl(chunkId);
|
|
11573
11585
|
return property === null
|
|
@@ -11576,27 +11588,27 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
|
11576
11588
|
? urlMechanism
|
|
11577
11589
|
: 'undefined';
|
|
11578
11590
|
};
|
|
11579
|
-
const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
|
|
11580
|
-
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'
|
|
11591
|
+
const getFileUrlFromFullPath = (path, asObject) => `require('u' + 'rl').pathToFileURL(${path})${asObject ? '' : '.href'}`;
|
|
11592
|
+
const getFileUrlFromRelativePath = (path, asObject) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`, asObject);
|
|
11581
11593
|
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
11582
11594
|
const relativeUrlMechanisms = {
|
|
11583
|
-
amd: relativePath => {
|
|
11595
|
+
amd: (relativePath, asObject) => {
|
|
11584
11596
|
if (relativePath[0] !== '.')
|
|
11585
11597
|
relativePath = './' + relativePath;
|
|
11586
|
-
return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI
|
|
11598
|
+
return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI`, asObject);
|
|
11587
11599
|
},
|
|
11588
|
-
cjs: relativePath => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath)})`,
|
|
11589
|
-
es: relativePath => getResolveUrl(`'${escapeId(relativePath)}', import.meta.url
|
|
11590
|
-
iife: relativePath => getRelativeUrlFromDocument(relativePath),
|
|
11591
|
-
system: relativePath => getResolveUrl(`'${escapeId(relativePath)}', module.meta.url
|
|
11592
|
-
umd: relativePath => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath, true)})`
|
|
11600
|
+
cjs: (relativePath, asObject) => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath, asObject)} : ${getRelativeUrlFromDocument(relativePath, asObject)})`,
|
|
11601
|
+
es: (relativePath, asObject) => getResolveUrl(`'${escapeId(relativePath)}', import.meta.url`, asObject),
|
|
11602
|
+
iife: (relativePath, asObject) => getRelativeUrlFromDocument(relativePath, asObject),
|
|
11603
|
+
system: (relativePath, asObject) => getResolveUrl(`'${escapeId(relativePath)}', module.meta.url`, asObject),
|
|
11604
|
+
umd: (relativePath, asObject) => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath, asObject)} : ${getRelativeUrlFromDocument(relativePath, asObject, true)})`
|
|
11593
11605
|
};
|
|
11594
11606
|
const importMetaMechanisms = {
|
|
11595
|
-
amd: getGenericImportMetaMechanism(() => getResolveUrl(`module.uri, document.baseURI
|
|
11596
|
-
cjs: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' ? ${getFileUrlFromFullPath('__filename')} : ${getUrlFromDocument(chunkId)})`),
|
|
11607
|
+
amd: getGenericImportMetaMechanism(() => getResolveUrl(`module.uri, document.baseURI`, false)),
|
|
11608
|
+
cjs: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' ? ${getFileUrlFromFullPath('__filename', false)} : ${getUrlFromDocument(chunkId)})`),
|
|
11597
11609
|
iife: getGenericImportMetaMechanism(chunkId => getUrlFromDocument(chunkId)),
|
|
11598
11610
|
system: (property, { snippets: { getPropertyAccess } }) => property === null ? `module.meta` : `module.meta${getPropertyAccess(property)}`,
|
|
11599
|
-
umd: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromFullPath('__filename')} : ${getUrlFromDocument(chunkId, true)})`)
|
|
11611
|
+
umd: getGenericImportMetaMechanism(chunkId => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromFullPath('__filename', false)} : ${getUrlFromDocument(chunkId, true)})`)
|
|
11600
11612
|
};
|
|
11601
11613
|
|
|
11602
11614
|
class UndefinedVariable extends Variable {
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
@@ -4,23 +4,6 @@ imports['__wbindgen_placeholder__'] = module.exports;
|
|
|
4
4
|
let wasm;
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
const heap = new Array(128).fill(undefined);
|
|
8
|
-
|
|
9
|
-
heap.push(undefined, null, true, false);
|
|
10
|
-
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
|
12
|
-
|
|
13
|
-
let heap_next = heap.length;
|
|
14
|
-
|
|
15
|
-
function addHeapObject(obj) {
|
|
16
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
17
|
-
const idx = heap_next;
|
|
18
|
-
heap_next = heap[idx];
|
|
19
|
-
|
|
20
|
-
heap[idx] = obj;
|
|
21
|
-
return idx;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
7
|
let cachedUint8ArrayMemory0 = null;
|
|
25
8
|
|
|
26
9
|
function getUint8ArrayMemory0() {
|
|
@@ -43,6 +26,28 @@ function getStringFromWasm0(ptr, len) {
|
|
|
43
26
|
return decodeText(ptr, len);
|
|
44
27
|
}
|
|
45
28
|
|
|
29
|
+
const heap = new Array(128).fill(undefined);
|
|
30
|
+
|
|
31
|
+
heap.push(undefined, null, true, false);
|
|
32
|
+
|
|
33
|
+
function getObject(idx) { return heap[idx]; }
|
|
34
|
+
|
|
35
|
+
let heap_next = heap.length;
|
|
36
|
+
|
|
37
|
+
function addHeapObject(obj) {
|
|
38
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
39
|
+
const idx = heap_next;
|
|
40
|
+
heap_next = heap[idx];
|
|
41
|
+
|
|
42
|
+
heap[idx] = obj;
|
|
43
|
+
return idx;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
47
|
+
ptr = ptr >>> 0;
|
|
48
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
49
|
+
}
|
|
50
|
+
|
|
46
51
|
let WASM_VECTOR_LEN = 0;
|
|
47
52
|
|
|
48
53
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -119,11 +124,6 @@ function takeObject(idx) {
|
|
|
119
124
|
dropObject(idx);
|
|
120
125
|
return ret;
|
|
121
126
|
}
|
|
122
|
-
|
|
123
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
124
|
-
ptr = ptr >>> 0;
|
|
125
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
126
|
-
}
|
|
127
127
|
/**
|
|
128
128
|
* @param {string} code
|
|
129
129
|
* @param {boolean} allow_return_outside_function
|
|
@@ -209,11 +209,6 @@ module.exports.xxhashBase16 = function(input) {
|
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
module.exports.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
|
|
213
|
-
const ret = getObject(arg0).buffer;
|
|
214
|
-
return addHeapObject(ret);
|
|
215
|
-
};
|
|
216
|
-
|
|
217
212
|
module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
218
213
|
let deferred0_0;
|
|
219
214
|
let deferred0_1;
|
|
@@ -226,7 +221,7 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
226
221
|
}
|
|
227
222
|
};
|
|
228
223
|
|
|
229
|
-
module.exports.
|
|
224
|
+
module.exports.__wbg_length_904c0910ed998bf3 = function(arg0) {
|
|
230
225
|
const ret = getObject(arg0).length;
|
|
231
226
|
return ret;
|
|
232
227
|
};
|
|
@@ -236,13 +231,8 @@ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
|
236
231
|
return addHeapObject(ret);
|
|
237
232
|
};
|
|
238
233
|
|
|
239
|
-
module.exports.
|
|
240
|
-
|
|
241
|
-
return addHeapObject(ret);
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
module.exports.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
|
|
245
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
234
|
+
module.exports.__wbg_prototypesetcall_c5f74efd31aea86b = function(arg0, arg1, arg2) {
|
|
235
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
246
236
|
};
|
|
247
237
|
|
|
248
238
|
module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
@@ -253,19 +243,14 @@ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
|
253
243
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
254
244
|
};
|
|
255
245
|
|
|
256
|
-
module.exports.
|
|
257
|
-
|
|
258
|
-
return addHeapObject(ret);
|
|
246
|
+
module.exports.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
|
|
247
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
259
248
|
};
|
|
260
249
|
|
|
261
250
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
262
251
|
takeObject(arg0);
|
|
263
252
|
};
|
|
264
253
|
|
|
265
|
-
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
266
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
267
|
-
};
|
|
268
|
-
|
|
269
254
|
const path = require('path').join(__dirname, 'bindings_wasm_bg.wasm');
|
|
270
255
|
const bytes = require('fs').readFileSync(path);
|
|
271
256
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.51.0",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@codemirror/state": "^6.5.2",
|
|
40
40
|
"@codemirror/view": "^6.38.2",
|
|
41
41
|
"@eslint/js": "^9.35.0",
|
|
42
|
-
"@inquirer/prompts": "^7.8.
|
|
42
|
+
"@inquirer/prompts": "^7.8.6",
|
|
43
43
|
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
44
|
-
"@mermaid-js/mermaid-cli": "^11.
|
|
45
|
-
"@napi-rs/cli": "^3.
|
|
44
|
+
"@mermaid-js/mermaid-cli": "^11.10.1",
|
|
45
|
+
"@napi-rs/cli": "^3.2.0",
|
|
46
46
|
"@rollup/plugin-alias": "^5.1.1",
|
|
47
47
|
"@rollup/plugin-buble": "^1.0.3",
|
|
48
48
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"@rollup/pluginutils": "^5.3.0",
|
|
55
55
|
"@shikijs/vitepress-twoslash": "^3.12.2",
|
|
56
56
|
"@types/mocha": "^10.0.10",
|
|
57
|
-
"@types/node": "^20.19.
|
|
57
|
+
"@types/node": "^20.19.15",
|
|
58
58
|
"@types/picomatch": "^4.0.2",
|
|
59
59
|
"@types/semver": "^7.7.1",
|
|
60
60
|
"@types/yargs-parser": "^21.0.3",
|
|
61
|
-
"@vue/language-server": "^3.0.
|
|
61
|
+
"@vue/language-server": "^3.0.7",
|
|
62
62
|
"acorn": "^8.15.0",
|
|
63
63
|
"acorn-import-assertions": "^1.9.0",
|
|
64
64
|
"acorn-jsx": "^5.3.2",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"eslint-plugin-vue": "^10.4.0",
|
|
79
79
|
"fixturify": "^3.0.0",
|
|
80
80
|
"flru": "^1.0.2",
|
|
81
|
-
"fs-extra": "^11.3.
|
|
81
|
+
"fs-extra": "^11.3.2",
|
|
82
82
|
"github-api": "^3.4.0",
|
|
83
|
-
"globals": "^16.
|
|
83
|
+
"globals": "^16.4.0",
|
|
84
84
|
"husky": "^9.1.7",
|
|
85
85
|
"is-reference": "^3.0.3",
|
|
86
86
|
"lint-staged": "^16.1.6",
|
|
87
87
|
"locate-character": "^3.0.0",
|
|
88
88
|
"magic-string": "^0.30.19",
|
|
89
|
-
"memfs": "^4.
|
|
89
|
+
"memfs": "^4.39.0",
|
|
90
90
|
"mocha": "^11.7.2",
|
|
91
91
|
"nodemon": "^3.1.10",
|
|
92
92
|
"nyc": "^17.1.0",
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"prettier": "^3.6.2",
|
|
97
97
|
"prettier-plugin-organize-imports": "^4.2.0",
|
|
98
98
|
"pretty-bytes": "^7.0.1",
|
|
99
|
-
"pretty-ms": "^9.
|
|
99
|
+
"pretty-ms": "^9.3.0",
|
|
100
100
|
"requirejs": "^2.3.7",
|
|
101
|
-
"rollup": "^4.50.
|
|
101
|
+
"rollup": "^4.50.2",
|
|
102
102
|
"rollup-plugin-license": "^3.6.0",
|
|
103
103
|
"rollup-plugin-string": "^3.0.0",
|
|
104
104
|
"semver": "^7.7.2",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"terser": "^5.44.0",
|
|
111
111
|
"tslib": "^2.8.1",
|
|
112
112
|
"typescript": "^5.9.2",
|
|
113
|
-
"typescript-eslint": "^8.
|
|
113
|
+
"typescript-eslint": "^8.44.0",
|
|
114
114
|
"vite": "^7.1.5",
|
|
115
115
|
"vitepress": "^1.6.4",
|
|
116
116
|
"vue": "^3.5.21",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"yargs-parser": "^21.1.1"
|
|
121
121
|
},
|
|
122
122
|
"overrides": {
|
|
123
|
-
"axios": "^1.
|
|
123
|
+
"axios": "^1.12.2",
|
|
124
124
|
"semver": "^7.7.2",
|
|
125
125
|
"readable-stream": "npm:@built-in/readable-stream@1",
|
|
126
126
|
"esbuild": ">0.24.2"
|