@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.
@@ -1,13 +1,13 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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 { resolve } from 'node:path';
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 || {};
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.14.0
4
- Wed, 03 Apr 2024 05:22:15 GMT - commit 5abe71bd5bae3423b4e2ee80207c871efde20253
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 node_path = require('node:path');
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 = node_path.resolve(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(node_path.resolve(pluginText)).href;
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] !== '.' && !node_path.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
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(node_path.join(node_path.dirname(fileName), `rollup.config-${Date.now()}.${bundleConfigAsCjs ? 'cjs' : 'mjs'}`), code);
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);