rollup 2.52.1 → 2.52.2

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.d.ts CHANGED
@@ -277,7 +277,8 @@ export type RenderChunkHook = (
277
277
  | Promise<{ code: string; map?: SourceMapInput } | null>
278
278
  | { code: string; map?: SourceMapInput }
279
279
  | string
280
- | null;
280
+ | null
281
+ | undefined;
281
282
 
282
283
  export type ResolveDynamicImportHook = (
283
284
  this: PluginContext,
@@ -539,7 +540,7 @@ export interface InputOptions {
539
540
  moduleContext?: ((id: string) => string | null | undefined) | { [id: string]: string };
540
541
  onwarn?: WarningHandlerWithDefault;
541
542
  perf?: boolean;
542
- plugins?: Plugin[];
543
+ plugins?: (Plugin | null | false | undefined)[];
543
544
  preserveEntrySignatures?: PreserveEntrySignaturesOption;
544
545
  /** @deprecated Use the "preserveModules" output option instead. */
545
546
  preserveModules?: boolean;
@@ -650,7 +651,7 @@ export interface OutputOptions {
650
651
  noConflict?: boolean;
651
652
  outro?: string | (() => string | Promise<string>);
652
653
  paths?: OptionsPaths;
653
- plugins?: OutputPlugin[];
654
+ plugins?: (OutputPlugin | null | false | undefined)[];
654
655
  preferConst?: boolean;
655
656
  preserveModules?: boolean;
656
657
  preserveModulesRoot?: string;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.52.1
4
- Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
3
+ Rollup.js v2.52.2
4
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.52.1
4
- Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
3
+ Rollup.js v2.52.2
4
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.52.1
4
- Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
3
+ Rollup.js v2.52.2
4
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.52.1
4
- Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
3
+ Rollup.js v2.52.2
4
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.52.1
4
- Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
3
+ Rollup.js v2.52.2
4
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -32,7 +32,7 @@ function _interopNamespaceDefault(e) {
32
32
 
33
33
  var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
34
34
 
35
- var version$1 = "2.52.1";
35
+ var version$1 = "2.52.2";
36
36
 
37
37
  function ensureArray(items) {
38
38
  if (Array.isArray(items)) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.52.1
4
- Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
3
+ Rollup.js v2.52.2
4
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.52.1
4
- Thu, 17 Jun 2021 05:22:05 GMT - commit bef5fe8a573648f73c258ce9adf1a7ff3ffb129d
3
+ Rollup.js v2.52.2
4
+ Mon, 21 Jun 2021 05:09:47 GMT - commit a9346bae21287e17eda8d0490b4776402e067db1
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.52.1",
3
+ "version": "2.52.2",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -9,9 +9,9 @@
9
9
  "rollup": "dist/bin/rollup"
10
10
  },
11
11
  "scripts": {
12
- "build": "shx rm -rf dist && git rev-parse HEAD > .commithash && rollup -c && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
13
- "build:cjs": "shx rm -rf dist && rollup -c --configTest && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
14
- "build:bootstrap": "dist/bin/rollup -c && shx cp src/rollup/types.d.ts dist/rollup.d.ts && shx chmod a+x dist/bin/rollup",
12
+ "build": "shx rm -rf dist && git rev-parse HEAD > .commithash && 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
+ "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": "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",
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",
@@ -38,7 +38,7 @@
38
38
  "test:only": "mocha test/test.js",
39
39
  "test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit",
40
40
  "test:browser": "mocha test/browser/index.js",
41
- "watch": "rollup -cw"
41
+ "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
42
42
  },
43
43
  "repository": "rollup/rollup",
44
44
  "keywords": [
@@ -64,7 +64,6 @@
64
64
  "@rollup/plugin-json": "^4.1.0",
65
65
  "@rollup/plugin-node-resolve": "^13.0.0",
66
66
  "@rollup/plugin-replace": "^2.4.2",
67
- "@rollup/plugin-typescript": "^8.2.1",
68
67
  "@types/micromatch": "^4.0.1",
69
68
  "@types/node": "^10.17.60",
70
69
  "@types/require-relative": "^0.8.0",
@@ -104,7 +103,7 @@
104
103
  "pretty-ms": "^7.0.1",
105
104
  "require-relative": "^0.8.7",
106
105
  "requirejs": "^2.3.6",
107
- "rollup": "^2.51.2",
106
+ "rollup": "^2.52.0",
108
107
  "rollup-plugin-license": "^2.5.0",
109
108
  "rollup-plugin-string": "^3.0.0",
110
109
  "rollup-plugin-terser": "^7.0.2",