rollup 2.33.2 → 2.33.3

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/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.33.2
4
- Sat, 14 Nov 2020 14:08:31 GMT - commit fd809d559fc3d8fdc288705bccf53ce3b6d79f51
3
+ Rollup.js v2.33.3
4
+ Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.33.2
4
- Sat, 14 Nov 2020 14:08:31 GMT - commit fd809d559fc3d8fdc288705bccf53ce3b6d79f51
3
+ Rollup.js v2.33.3
4
+ Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.33.2
4
- Sat, 14 Nov 2020 14:08:31 GMT - commit fd809d559fc3d8fdc288705bccf53ce3b6d79f51
3
+ Rollup.js v2.33.3
4
+ Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.33.2
4
- Sat, 14 Nov 2020 14:08:31 GMT - commit fd809d559fc3d8fdc288705bccf53ce3b6d79f51
3
+ Rollup.js v2.33.3
4
+ Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.33.2
4
- Sat, 14 Nov 2020 14:08:31 GMT - commit fd809d559fc3d8fdc288705bccf53ce3b6d79f51
3
+ Rollup.js v2.33.3
4
+ Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -19,7 +19,7 @@ function _interopNamespaceDefaultOnly(e) {
19
19
  return {__proto__: null, 'default': e};
20
20
  }
21
21
 
22
- var version = "2.33.2";
22
+ var version = "2.33.3";
23
23
 
24
24
  function ensureArray(items) {
25
25
  if (Array.isArray(items)) {
@@ -4970,6 +4970,16 @@ function getInteropBlock(dependencies, varOrConst, interop, externalLiveBindings
4970
4970
  return `${getHelpersBlock(neededInteropHelpers, accessedGlobals, _, n, s, t, externalLiveBindings, freeze, namespaceToStringTag)}${interopStatements.length > 0 ? `${interopStatements.join(n)}${n}${n}` : ''}`;
4971
4971
  }
4972
4972
 
4973
+ // AMD resolution will only respect the AMD baseUrl if the .js extension is omitted.
4974
+ // The assumption is that this makes sense for all relative ids:
4975
+ // https://requirejs.org/docs/api.html#jsfiles
4976
+ function removeExtensionFromRelativeAmdId(id) {
4977
+ if (id[0] === '.' && id.endsWith('.js')) {
4978
+ return id.slice(0, -3);
4979
+ }
4980
+ return id;
4981
+ }
4982
+
4973
4983
  const builtins$1 = {
4974
4984
  assert: true,
4975
4985
  buffer: true,
@@ -5010,15 +5020,6 @@ function warnOnBuiltins(warn, dependencies) {
5010
5020
  });
5011
5021
  }
5012
5022
 
5013
- // AMD resolution will only respect the AMD baseUrl if the .js extension is omitted.
5014
- // The assumption is that this makes sense for all relative ids:
5015
- // https://requirejs.org/docs/api.html#jsfiles
5016
- function removeExtensionFromRelativeAmdId(id) {
5017
- if (id[0] === '.' && id.endsWith('.js')) {
5018
- return id.slice(0, -3);
5019
- }
5020
- return id;
5021
- }
5022
5023
  function amd(magicString, { accessedGlobals, dependencies, exports, hasExports, indentString: t, intro, isEntryFacade, isModuleFacade, namedExportsMode, outro, varOrConst, warn }, { amd: { define: amdDefine, id: amdId }, compact, esModule, externalLiveBindings, freeze, interop, namespaceToStringTag, strict }) {
5023
5024
  warnOnBuiltins(warn, dependencies);
5024
5025
  const deps = dependencies.map(m => `'${removeExtensionFromRelativeAmdId(m.id)}'`);
@@ -5813,7 +5814,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports, hasExports,
5813
5814
  });
5814
5815
  }
5815
5816
  warnOnBuiltins(warn, dependencies);
5816
- const amdDeps = dependencies.map(m => `'${m.id}'`);
5817
+ const amdDeps = dependencies.map(m => `'${removeExtensionFromRelativeAmdId(m.id)}'`);
5817
5818
  const cjsDeps = dependencies.map(m => `require('${m.id}')`);
5818
5819
  const trimmedImports = trimEmptyImports(dependencies);
5819
5820
  const globalDeps = trimmedImports.map(module => globalProp(module.globalName, globalVar));
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.33.2
4
- Sat, 14 Nov 2020 14:08:31 GMT - commit fd809d559fc3d8fdc288705bccf53ce3b6d79f51
3
+ Rollup.js v2.33.3
4
+ Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.33.2
4
- Sat, 14 Nov 2020 14:08:31 GMT - commit fd809d559fc3d8fdc288705bccf53ce3b6d79f51
3
+ Rollup.js v2.33.3
4
+ Wed, 18 Nov 2020 05:54:45 GMT - commit 07868398277174501db6703d0bcdfc6b89d6fa6e
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.33.2",
3
+ "version": "2.33.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",