rollup 3.0.0 → 3.0.1
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/bin/rollup +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +11 -4
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +11 -4
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +10 -7
package/dist/bin/rollup
CHANGED
package/dist/es/rollup.js
CHANGED
package/dist/es/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.0.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.0.1
|
|
4
|
+
Wed, 12 Oct 2022 07:33:32 GMT - commit 4dd8f96addd8d8197f96e258749d78c2d1c443c8
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ import { createHash as createHash$1 } from 'node:crypto';
|
|
|
15
15
|
import { promises } from 'node:fs';
|
|
16
16
|
import { EventEmitter } from 'node:events';
|
|
17
17
|
|
|
18
|
-
var version$1 = "3.0.
|
|
18
|
+
var version$1 = "3.0.1";
|
|
19
19
|
|
|
20
20
|
var charToInteger = {};
|
|
21
21
|
var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
@@ -11930,8 +11930,15 @@ class VariableDeclaration extends NodeBase {
|
|
|
11930
11930
|
for (const declarator of this.declarations) {
|
|
11931
11931
|
if (includeChildrenRecursively || declarator.shouldBeIncluded(context))
|
|
11932
11932
|
declarator.include(context, includeChildrenRecursively);
|
|
11933
|
+
const { id, init } = declarator;
|
|
11933
11934
|
if (asSingleStatement) {
|
|
11934
|
-
|
|
11935
|
+
id.include(context, includeChildrenRecursively);
|
|
11936
|
+
}
|
|
11937
|
+
if (init &&
|
|
11938
|
+
id.included &&
|
|
11939
|
+
!init.included &&
|
|
11940
|
+
(id instanceof ObjectPattern || id instanceof ArrayPattern)) {
|
|
11941
|
+
init.include(context, includeChildrenRecursively);
|
|
11935
11942
|
}
|
|
11936
11943
|
}
|
|
11937
11944
|
}
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.0.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.0.1
|
|
4
|
+
Wed, 12 Oct 2022 07:33:32 GMT - commit 4dd8f96addd8d8197f96e258749d78c2d1c443c8
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ const node_crypto = require('node:crypto');
|
|
|
17
17
|
const node_fs = require('node:fs');
|
|
18
18
|
const node_events = require('node:events');
|
|
19
19
|
|
|
20
|
-
var version$1 = "3.0.
|
|
20
|
+
var version$1 = "3.0.1";
|
|
21
21
|
|
|
22
22
|
function ensureArray$1(items) {
|
|
23
23
|
if (Array.isArray(items)) {
|
|
@@ -12101,8 +12101,15 @@ class VariableDeclaration extends NodeBase {
|
|
|
12101
12101
|
for (const declarator of this.declarations) {
|
|
12102
12102
|
if (includeChildrenRecursively || declarator.shouldBeIncluded(context))
|
|
12103
12103
|
declarator.include(context, includeChildrenRecursively);
|
|
12104
|
+
const { id, init } = declarator;
|
|
12104
12105
|
if (asSingleStatement) {
|
|
12105
|
-
|
|
12106
|
+
id.include(context, includeChildrenRecursively);
|
|
12107
|
+
}
|
|
12108
|
+
if (init &&
|
|
12109
|
+
id.included &&
|
|
12110
|
+
!init.included &&
|
|
12111
|
+
(id instanceof ObjectPattern || id instanceof ArrayPattern)) {
|
|
12112
|
+
init.include(context, includeChildrenRecursively);
|
|
12106
12113
|
}
|
|
12107
12114
|
}
|
|
12108
12115
|
}
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -12,22 +12,24 @@
|
|
|
12
12
|
"build": "rollup --config rollup.config.ts --configPlugin typescript",
|
|
13
13
|
"build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest",
|
|
14
14
|
"build:bootstrap": "node dist/bin/rollup --config rollup.config.ts --configPlugin typescript",
|
|
15
|
-
"ci:lint": "npm
|
|
15
|
+
"ci:lint": "concurrently 'npm:lint:js:nofix' 'npm:lint:markdown: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
|
-
"lint": "
|
|
20
|
-
"lint:
|
|
19
|
+
"lint": "concurrently -c red,green 'npm:lint:js' 'npm:lint:markdown'",
|
|
20
|
+
"lint:js": "eslint . --fix --cache",
|
|
21
|
+
"lint:js:nofix": "eslint . --cache",
|
|
21
22
|
"lint:markdown": "prettier --write \"**/*.md\"",
|
|
23
|
+
"lint:markdown:nofix": "prettier --check \"**/*.md\"",
|
|
22
24
|
"perf": "npm run build:cjs && node --expose-gc scripts/perf.js",
|
|
23
25
|
"perf:init": "node scripts/perf-init.js",
|
|
24
|
-
"prepare": "husky install && scripts/check-release.js || npm run build",
|
|
25
|
-
"prepublishOnly": "scripts/check-release.js",
|
|
26
|
+
"prepare": "husky install && node scripts/check-release.js || npm run build",
|
|
27
|
+
"prepublishOnly": "node scripts/check-release.js",
|
|
26
28
|
"release": "node scripts/release.js",
|
|
27
29
|
"test": "npm run build && npm run test:all",
|
|
28
30
|
"test:cjs": "npm run build:cjs && npm run test:only",
|
|
29
31
|
"test:quick": "mocha -b test/test.js",
|
|
30
|
-
"test:all": "
|
|
32
|
+
"test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan,red 'npm:test:only' 'npm:test:browser' 'npm:test:typescript' 'npm:test:leak' 'npm:test:package'",
|
|
31
33
|
"test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
|
|
32
34
|
"test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
|
|
33
35
|
"test:leak": "node --expose-gc test/leak/index.js",
|
|
@@ -76,6 +78,7 @@
|
|
|
76
78
|
"buble": "^0.20.0",
|
|
77
79
|
"chokidar": "^3.5.3",
|
|
78
80
|
"colorette": "^2.0.19",
|
|
81
|
+
"concurrently": "^7.4.0",
|
|
79
82
|
"core-js": "^3.25.5",
|
|
80
83
|
"date-time": "^4.0.0",
|
|
81
84
|
"es5-shim": "^4.6.7",
|