@rollup/wasm-node 4.14.0 → 4.14.2
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 +5 -5
- 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 +184 -167
- package/dist/es/shared/parseAst.js +114 -99
- package/dist/es/shared/watch.js +4 -4
- 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 +7 -7
- package/dist/shared/parseAst.js +125 -106
- package/dist/shared/rollup.js +269 -252
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +4 -4
- package/dist/wasm-node/bindings_wasm.js +8 -8
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +16 -16
package/dist/es/shared/watch.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.14.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.14.2
|
|
4
|
+
Fri, 12 Apr 2024 06:23:07 GMT - commit 7275328b41b29605142bfdf55d68cb54e895a20c
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
|
-
import
|
|
10
|
+
import path$1 from 'node:path';
|
|
11
11
|
import process$1 from 'node:process';
|
|
12
12
|
import { picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './node-entry.js';
|
|
13
13
|
import { platform } from 'node:os';
|
|
@@ -4754,7 +4754,7 @@ class Task {
|
|
|
4754
4754
|
this.outputs = this.options.output;
|
|
4755
4755
|
this.outputFiles = this.outputs.map(output => {
|
|
4756
4756
|
if (output.file || output.dir)
|
|
4757
|
-
return resolve(output.file || output.dir);
|
|
4757
|
+
return path$1.resolve(output.file || output.dir);
|
|
4758
4758
|
return undefined;
|
|
4759
4759
|
});
|
|
4760
4760
|
const watchOptions = this.options.watch || {};
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.14.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.14.2
|
|
4
|
+
Fri, 12 Apr 2024 06:23:07 GMT - commit 7275328b41b29605142bfdf55d68cb54e895a20c
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
const promises = require('node:fs/promises');
|
|
13
|
-
const
|
|
13
|
+
const path = require('node:path');
|
|
14
14
|
const process$1 = require('node:process');
|
|
15
15
|
const node_url = require('node:url');
|
|
16
16
|
const rollup = require('./rollup.js');
|
|
@@ -384,11 +384,11 @@ async function loadAndRegisterPlugin(inputOptions, pluginText) {
|
|
|
384
384
|
if (!plugin) {
|
|
385
385
|
try {
|
|
386
386
|
if (pluginText[0] == '.')
|
|
387
|
-
pluginText =
|
|
387
|
+
pluginText = path.resolve(pluginText);
|
|
388
388
|
// Windows absolute paths must be specified as file:// protocol URL
|
|
389
389
|
// Note that we do not have coverage for Windows-only code paths
|
|
390
390
|
else if (/^[A-Za-z]:\\/.test(pluginText)) {
|
|
391
|
-
pluginText = node_url.pathToFileURL(
|
|
391
|
+
pluginText = node_url.pathToFileURL(path.resolve(pluginText)).href;
|
|
392
392
|
}
|
|
393
393
|
plugin = await requireOrImport(pluginText);
|
|
394
394
|
}
|
|
@@ -490,7 +490,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
|
|
|
490
490
|
const { bundleConfigAsCjs, configPlugin, silent } = commandOptions;
|
|
491
491
|
const warnings = batchWarnings(commandOptions);
|
|
492
492
|
const inputOptions = {
|
|
493
|
-
external: (id) => (id[0] !== '.' && !
|
|
493
|
+
external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
|
|
494
494
|
input: fileName,
|
|
495
495
|
onwarn: warnings.add,
|
|
496
496
|
plugins: [],
|
|
@@ -519,7 +519,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
|
|
|
519
519
|
rollup.stderr(rollup.bold(`loaded ${parseAst_js.relativeId(fileName)} with warnings`));
|
|
520
520
|
warnings.flush();
|
|
521
521
|
}
|
|
522
|
-
return loadConfigFromWrittenFile(
|
|
522
|
+
return loadConfigFromWrittenFile(path.join(path.dirname(fileName), `rollup.config-${Date.now()}.${bundleConfigAsCjs ? 'cjs' : 'mjs'}`), code);
|
|
523
523
|
}
|
|
524
524
|
async function loadConfigFromWrittenFile(bundledFileName, bundledCode) {
|
|
525
525
|
await promises.writeFile(bundledFileName, bundledCode);
|