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/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
 
@@ -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
 
@@ -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
 
@@ -27,7 +27,7 @@ function _interopNamespaceDefault(e) {
27
27
  return n;
28
28
  }
29
29
 
30
- var version$1 = "2.77.0";
30
+ var version$1 = "2.77.3";
31
31
 
32
32
  function ensureArray$1(items) {
33
33
  if (Array.isArray(items)) {
@@ -10390,6 +10390,7 @@ class ImportExpression extends NodeBase {
10390
10390
  }
10391
10391
  setExternalResolution(exportMode, resolution, options, snippets, pluginDriver, accessedGlobalsByScope) {
10392
10392
  const { format } = options;
10393
+ this.inlineNamespace = null;
10393
10394
  this.resolution = resolution;
10394
10395
  const accessedGlobals = [...(accessedImportGlobals[format] || [])];
10395
10396
  let helper;
@@ -13704,7 +13705,7 @@ function trimEmptyImports(dependencies) {
13704
13705
  }
13705
13706
 
13706
13707
  function iife(magicString, { accessedGlobals, dependencies, exports, hasExports, indent: t, intro, namedExportsMode, outro, snippets, warn }, { compact, esModule, extend, freeze, externalLiveBindings, globals, interop, name, namespaceToStringTag, strict }) {
13707
- const { _, cnst, getNonArrowFunctionIntro, getPropertyAccess, n } = snippets;
13708
+ const { _, getNonArrowFunctionIntro, getPropertyAccess, n } = snippets;
13708
13709
  const isNamespaced = name && name.includes('.');
13709
13710
  const useVariableAssignment = !extend && !isNamespaced;
13710
13711
  if (name && useVariableAssignment && !isLegal(name)) {
@@ -13743,7 +13744,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports, hasExports,
13743
13744
  if (hasExports) {
13744
13745
  if (name && !(extend && namedExportsMode)) {
13745
13746
  wrapperIntro =
13746
- (useVariableAssignment ? `${cnst} ${name}` : `this${keypath(name, getPropertyAccess)}`) +
13747
+ (useVariableAssignment ? `var ${name}` : `this${keypath(name, getPropertyAccess)}`) +
13747
13748
  `${_}=${_}${wrapperIntro}`;
13748
13749
  }
13749
13750
  if (isNamespaced) {
@@ -14734,7 +14735,7 @@ class Chunk {
14734
14735
  });
14735
14736
  const currentPath = `${currentDir}/${fileName}`;
14736
14737
  const { preserveModulesRoot } = options;
14737
- if (preserveModulesRoot && currentPath.startsWith(preserveModulesRoot)) {
14738
+ if (preserveModulesRoot && require$$0.resolve(currentPath).startsWith(preserveModulesRoot)) {
14738
14739
  path = currentPath.slice(preserveModulesRoot.length).replace(/^[\\/]/, '');
14739
14740
  }
14740
14741
  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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.77.0",
3
+ "version": "2.77.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -11,13 +11,13 @@
11
11
  "scripts": {
12
12
  "build": "shx rm -rf dist && node scripts/update-git-commit.js && rollup --config rollup.config.ts --configPlugin typescript && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
13
13
  "build:cjs": "shx rm -rf dist && rollup --config rollup.config.ts --configPlugin typescript --configTest && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
14
- "build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
14
+ "build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup && cp -r dist browser/",
15
15
  "ci:lint": "npm run lint:nofix",
16
16
  "ci:test": "npm run build:cjs && npm run build:bootstrap && npm run test:all",
17
17
  "ci:test:only": "npm run build:cjs && npm run build:bootstrap && npm run test:only",
18
18
  "ci:coverage": "npm run build:cjs && npm run build:bootstrap && nyc --reporter lcovonly mocha",
19
19
  "lint": "eslint . --fix --cache && prettier --write \"**/*.md\"",
20
- "lint:nofix": "eslint . && prettier --check \"**/*.md\"",
20
+ "lint:nofix": "eslint . --cache && prettier --check \"**/*.md\"",
21
21
  "lint:markdown": "prettier --write \"**/*.md\"",
22
22
  "perf": "npm run build:cjs && node --expose-gc scripts/perf.js",
23
23
  "perf:debug": "node --inspect-brk scripts/perf-debug.js",
@@ -69,19 +69,19 @@
69
69
  "@types/node": "^10.17.60",
70
70
  "@types/signal-exit": "^3.0.1",
71
71
  "@types/yargs-parser": "^20.2.2",
72
- "@typescript-eslint/eslint-plugin": "^5.30.5",
73
- "@typescript-eslint/parser": "^5.30.5",
72
+ "@typescript-eslint/eslint-plugin": "^5.30.7",
73
+ "@typescript-eslint/parser": "^5.30.7",
74
74
  "acorn": "^8.7.1",
75
75
  "acorn-jsx": "^5.3.2",
76
76
  "acorn-walk": "^8.2.0",
77
77
  "buble": "^0.20.0",
78
78
  "chokidar": "^3.5.3",
79
79
  "colorette": "^2.0.19",
80
- "core-js": "^3.23.3",
80
+ "core-js": "^3.23.5",
81
81
  "date-time": "^4.0.0",
82
82
  "es5-shim": "^4.6.7",
83
83
  "es6-shim": "^0.35.6",
84
- "eslint": "^8.19.0",
84
+ "eslint": "^8.20.0",
85
85
  "eslint-config-prettier": "^8.5.0",
86
86
  "eslint-plugin-import": "^2.26.0",
87
87
  "eslint-plugin-prettier": "^4.2.1",
@@ -100,7 +100,7 @@
100
100
  "pretty-bytes": "^5.6.0",
101
101
  "pretty-ms": "^7.0.1",
102
102
  "requirejs": "^2.3.6",
103
- "rollup": "^2.75.7",
103
+ "rollup": "^2.77.0",
104
104
  "rollup-plugin-license": "^2.8.1",
105
105
  "rollup-plugin-string": "^3.0.0",
106
106
  "rollup-plugin-terser": "^7.0.2",
@@ -111,7 +111,7 @@
111
111
  "source-map-support": "^0.5.21",
112
112
  "sourcemap-codec": "^1.4.8",
113
113
  "systemjs": "^6.12.1",
114
- "terser": "^5.14.1",
114
+ "terser": "^5.14.2",
115
115
  "tslib": "^2.4.0",
116
116
  "typescript": "^4.7.4",
117
117
  "weak-napi": "^2.0.2",