rollup 2.77.0 → 2.77.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.77.0
4
- Fri, 15 Jul 2022 10:23:18 GMT - commit 87da8ef24f61d6601dc550026fc59f8066bbb95d
3
+ Rollup.js v2.77.3
4
+ Thu, 11 Aug 2022 05:48:58 GMT - commit 1165d46685ef3c70617b2f150ab245ff5de5e783
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.77.0
4
- Fri, 15 Jul 2022 10:23:18 GMT - commit 87da8ef24f61d6601dc550026fc59f8066bbb95d
3
+ Rollup.js v2.77.3
4
+ Thu, 11 Aug 2022 05:48:58 GMT - commit 1165d46685ef3c70617b2f150ab245ff5de5e783
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -14,7 +14,7 @@ import { createHash as createHash$1 } from 'crypto';
14
14
  import { promises } from 'fs';
15
15
  import { EventEmitter } from 'events';
16
16
 
17
- var version$1 = "2.77.0";
17
+ var version$1 = "2.77.3";
18
18
 
19
19
  var charToInteger = {};
20
20
  var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -10259,6 +10259,7 @@ class ImportExpression extends NodeBase {
10259
10259
  }
10260
10260
  setExternalResolution(exportMode, resolution, options, snippets, pluginDriver, accessedGlobalsByScope) {
10261
10261
  const { format } = options;
10262
+ this.inlineNamespace = null;
10262
10263
  this.resolution = resolution;
10263
10264
  const accessedGlobals = [...(accessedImportGlobals[format] || [])];
10264
10265
  let helper;
@@ -13573,7 +13574,7 @@ function trimEmptyImports(dependencies) {
13573
13574
  }
13574
13575
 
13575
13576
  function iife(magicString, { accessedGlobals, dependencies, exports, hasExports, indent: t, intro, namedExportsMode, outro, snippets, warn }, { compact, esModule, extend, freeze, externalLiveBindings, globals, interop, name, namespaceToStringTag, strict }) {
13576
- const { _, cnst, getNonArrowFunctionIntro, getPropertyAccess, n } = snippets;
13577
+ const { _, getNonArrowFunctionIntro, getPropertyAccess, n } = snippets;
13577
13578
  const isNamespaced = name && name.includes('.');
13578
13579
  const useVariableAssignment = !extend && !isNamespaced;
13579
13580
  if (name && useVariableAssignment && !isLegal(name)) {
@@ -13612,7 +13613,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports, hasExports,
13612
13613
  if (hasExports) {
13613
13614
  if (name && !(extend && namedExportsMode)) {
13614
13615
  wrapperIntro =
13615
- (useVariableAssignment ? `${cnst} ${name}` : `this${keypath(name, getPropertyAccess)}`) +
13616
+ (useVariableAssignment ? `var ${name}` : `this${keypath(name, getPropertyAccess)}`) +
13616
13617
  `${_}=${_}${wrapperIntro}`;
13617
13618
  }
13618
13619
  if (isNamespaced) {
@@ -14603,7 +14604,7 @@ class Chunk {
14603
14604
  });
14604
14605
  const currentPath = `${currentDir}/${fileName}`;
14605
14606
  const { preserveModulesRoot } = options;
14606
- if (preserveModulesRoot && currentPath.startsWith(preserveModulesRoot)) {
14607
+ if (preserveModulesRoot && resolve(currentPath).startsWith(preserveModulesRoot)) {
14607
14608
  path = currentPath.slice(preserveModulesRoot.length).replace(/^[\\/]/, '');
14608
14609
  }
14609
14610
  else {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.77.0
4
- Fri, 15 Jul 2022 10:23:18 GMT - commit 87da8ef24f61d6601dc550026fc59f8066bbb95d
3
+ Rollup.js v2.77.3
4
+ Thu, 11 Aug 2022 05:48:58 GMT - commit 1165d46685ef3c70617b2f150ab245ff5de5e783
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.77.0
4
- Fri, 15 Jul 2022 10:23:18 GMT - commit 87da8ef24f61d6601dc550026fc59f8066bbb95d
3
+ Rollup.js v2.77.3
4
+ Thu, 11 Aug 2022 05:48:58 GMT - commit 1165d46685ef3c70617b2f150ab245ff5de5e783
5
5
 
6
6
  https://github.com/rollup/rollup
7
7