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/es/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
@@ -13,7 +13,7 @@ import { createHash as createHash$1 } from 'crypto';
13
13
  import { writeFile as writeFile$1, readdirSync, mkdirSync, readFile as readFile$1, lstatSync, realpathSync } from 'fs';
14
14
  import { EventEmitter } from 'events';
15
15
 
16
- var version = "2.33.2";
16
+ var version = "2.33.3";
17
17
 
18
18
  var charToInteger = {};
19
19
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -4893,6 +4893,16 @@ function getInteropBlock(dependencies, varOrConst, interop, externalLiveBindings
4893
4893
  return `${getHelpersBlock(neededInteropHelpers, accessedGlobals, _, n, s, t, externalLiveBindings, freeze, namespaceToStringTag)}${interopStatements.length > 0 ? `${interopStatements.join(n)}${n}${n}` : ''}`;
4894
4894
  }
4895
4895
 
4896
+ // AMD resolution will only respect the AMD baseUrl if the .js extension is omitted.
4897
+ // The assumption is that this makes sense for all relative ids:
4898
+ // https://requirejs.org/docs/api.html#jsfiles
4899
+ function removeExtensionFromRelativeAmdId(id) {
4900
+ if (id[0] === '.' && id.endsWith('.js')) {
4901
+ return id.slice(0, -3);
4902
+ }
4903
+ return id;
4904
+ }
4905
+
4896
4906
  const builtins$1 = {
4897
4907
  assert: true,
4898
4908
  buffer: true,
@@ -4933,15 +4943,6 @@ function warnOnBuiltins(warn, dependencies) {
4933
4943
  });
4934
4944
  }
4935
4945
 
4936
- // AMD resolution will only respect the AMD baseUrl if the .js extension is omitted.
4937
- // The assumption is that this makes sense for all relative ids:
4938
- // https://requirejs.org/docs/api.html#jsfiles
4939
- function removeExtensionFromRelativeAmdId(id) {
4940
- if (id[0] === '.' && id.endsWith('.js')) {
4941
- return id.slice(0, -3);
4942
- }
4943
- return id;
4944
- }
4945
4946
  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 }) {
4946
4947
  warnOnBuiltins(warn, dependencies);
4947
4948
  const deps = dependencies.map(m => `'${removeExtensionFromRelativeAmdId(m.id)}'`);
@@ -5757,7 +5758,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports, hasExports,
5757
5758
  });
5758
5759
  }
5759
5760
  warnOnBuiltins(warn, dependencies);
5760
- const amdDeps = dependencies.map(m => `'${m.id}'`);
5761
+ const amdDeps = dependencies.map(m => `'${removeExtensionFromRelativeAmdId(m.id)}'`);
5761
5762
  const cjsDeps = dependencies.map(m => `require('${m.id}')`);
5762
5763
  const trimmedImports = trimEmptyImports(dependencies);
5763
5764
  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