rollup 2.38.4 → 2.40.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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.38.4
4
- Tue, 02 Feb 2021 05:54:38 GMT - commit 991bb98fad1f3f76226bfe6243fd6cc45a19a39b
3
+ Rollup.js v2.40.0
4
+ Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -11,7 +11,7 @@
11
11
  'use strict';
12
12
 
13
13
  var fs = require('fs');
14
- var sysPath = require('path');
14
+ var path = require('path');
15
15
  var url = require('url');
16
16
  var rollup = require('./rollup.js');
17
17
  var mergeOptions = require('./mergeOptions.js');
@@ -116,7 +116,7 @@ function batchWarnings() {
116
116
  const id = (warning.loc && warning.loc.file) || warning.id;
117
117
  if (id) {
118
118
  const loc = warning.loc
119
- ? `${rollup.relativeId(id)}: (${warning.loc.line}:${warning.loc.column})`
119
+ ? `${rollup.relativeId(id)} (${warning.loc.line}:${warning.loc.column})`
120
120
  : rollup.relativeId(id);
121
121
  stderr(bold(rollup.relativeId(loc)));
122
122
  }
@@ -426,7 +426,7 @@ function loadAndRegisterPlugin(inputOptions, pluginText) {
426
426
  if (!plugin) {
427
427
  try {
428
428
  if (pluginText[0] == '.')
429
- pluginText = sysPath.resolve(pluginText);
429
+ pluginText = path.resolve(pluginText);
430
430
  plugin = require(pluginText);
431
431
  }
432
432
  catch (ex) {
@@ -475,7 +475,7 @@ async function loadAndParseConfigFile(fileName, commandOptions = {}) {
475
475
  }
476
476
  }
477
477
  async function loadConfigFile(fileName, commandOptions) {
478
- const extension = sysPath.extname(fileName);
478
+ const extension = path.extname(fileName);
479
479
  const configFileExport = extension === '.mjs' && supportsNativeESM()
480
480
  ? (await import(url.pathToFileURL(fileName).href)).default
481
481
  : extension === '.cjs'
@@ -489,7 +489,7 @@ function getDefaultFromCjs(namespace) {
489
489
  async function getDefaultFromTranspiledConfigFile(fileName, silent) {
490
490
  const warnings = batchWarnings();
491
491
  const bundle = await rollup.rollup({
492
- external: (id) => (id[0] !== '.' && !sysPath.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
492
+ external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
493
493
  input: fileName,
494
494
  onwarn: warnings.add,
495
495
  treeshake: false
@@ -506,7 +506,7 @@ async function getDefaultFromTranspiledConfigFile(fileName, silent) {
506
506
  }
507
507
  async function loadConfigFromBundledFile(fileName, bundledCode) {
508
508
  const resolvedFileName = fs.realpathSync(fileName);
509
- const extension = sysPath.extname(resolvedFileName);
509
+ const extension = path.extname(resolvedFileName);
510
510
  const defaultLoader = require.extensions[extension];
511
511
  require.extensions[extension] = (module, requiredFileName) => {
512
512
  if (requiredFileName === resolvedFileName) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.38.4
4
- Tue, 02 Feb 2021 05:54:38 GMT - commit 991bb98fad1f3f76226bfe6243fd6cc45a19a39b
3
+ Rollup.js v2.40.0
4
+ Fri, 26 Feb 2021 14:39:44 GMT - commit 0a0958ff926554abe9916178f56762ba71301ddd
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -159,7 +159,8 @@ function mergeOutputOptions(config, overrides, warn) {
159
159
  sourcemapFile: getOption('sourcemapFile'),
160
160
  sourcemapPathTransform: getOption('sourcemapPathTransform'),
161
161
  strict: getOption('strict'),
162
- systemNullSetters: getOption('systemNullSetters')
162
+ systemNullSetters: getOption('systemNullSetters'),
163
+ validate: getOption('validate')
163
164
  };
164
165
  rollup.warnUnknownOptions(config, Object.keys(outputOptions), 'output options', warn);
165
166
  return outputOptions;