Skip to content

Commit

Permalink
Upgrade Rollup, its plugins and jest-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored and emmatown committed Apr 10, 2023
1 parent d2cd411 commit d90f745
Show file tree
Hide file tree
Showing 14 changed files with 776 additions and 343 deletions.
12 changes: 6 additions & 6 deletions packages/cli/package.json
Expand Up @@ -20,11 +20,11 @@
"@babel/helper-module-imports": "^7.10.4",
"@babel/runtime": "^7.7.7",
"@preconstruct/hook": "^0.4.0",
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.4.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"builtin-modules": "^3.1.0",
"chalk": "^4.1.0",
"dataloader": "^2.0.0",
Expand All @@ -36,7 +36,7 @@
"fs-extra": "^9.0.1",
"is-ci": "^2.0.0",
"is-reference": "^1.2.1",
"jest-worker": "^26.3.0",
"jest-worker": "^29.5.0",
"magic-string": "^0.30.0",
"meow": "^7.1.0",
"ms": "^2.1.2",
Expand All @@ -48,7 +48,7 @@
"quick-lru": "^5.1.1",
"resolve": "^1.17.0",
"resolve-from": "^5.0.0",
"rollup": "^2.79.1",
"rollup": "^3.20.2",
"semver": "^7.3.4",
"terser": "^5.16.8",
"v8-compile-cache": "^2.1.1"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/build/__tests__/__snapshots__/basic.ts.snap
Expand Up @@ -7,7 +7,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = "something";
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -29,7 +29,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = "something";
exports["default"] = index;
exports.default = index;
"
`;

Expand Down
22 changes: 12 additions & 10 deletions packages/cli/src/build/__tests__/__snapshots__/build.ts.snap
Expand Up @@ -70,7 +70,7 @@ function doSomething(arg) {
}
var index = "wow";
exports["default"] = index;
exports.default = index;
exports.doSomething = doSomething;
"
`;
Expand Down Expand Up @@ -103,7 +103,7 @@ function doSomething(arg) {
}
var index = "wow";
exports["default"] = index;
exports.default = index;
exports.doSomething = doSomething;
"
`;
Expand All @@ -125,7 +125,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = 2;
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -147,7 +147,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = 2;
exports["default"] = index;
exports.default = index;
"
`;

Expand Down Expand Up @@ -309,7 +309,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = 1;
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -331,7 +331,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = 1;
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -349,7 +349,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = 2;
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -371,7 +371,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = 2;
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -389,7 +389,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = "this does not have a module build";
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -411,7 +411,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = "this does not have a module build";
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -424,6 +424,7 @@ function thing() {
if (process.env.NODE_ENV !== "production") {
return "not prod";
}
return "prod";
}
Expand All @@ -448,6 +449,7 @@ exports[`prod checks: prod-checks.cjs.prod.js 1`] = `
Object.defineProperty(exports, '__esModule', { value: true });
function thing() {
return "prod";
}
Expand Down
Expand Up @@ -119,11 +119,10 @@ exports.sum = sum;

exports[`two entrypoints with a common dependency: dist/common-dependency-two-entrypoints.esm.js 1`] = `
"import { i as identity } from './identity-some-hash.esm.js';
export { i as identity } from './identity-some-hash.esm.js';
let sum = (a, b) => identity(a + b);
export { sum };
export { identity, sum };
"
`;

Expand Down Expand Up @@ -193,11 +192,10 @@ exports.multiply = multiply;

exports[`two entrypoints with a common dependency: multiply/dist/common-dependency-two-entrypoints-multiply.esm.js 1`] = `
"import { i as identity } from '../../dist/identity-some-hash.esm.js';
export { i as identity } from '../../dist/identity-some-hash.esm.js';
let multiply = (a, b) => identity(a * b);
export { multiply };
export { identity, multiply };
"
`;

Expand Down
23 changes: 16 additions & 7 deletions packages/cli/src/build/__tests__/__snapshots__/other.ts.snap
Expand Up @@ -6,15 +6,18 @@ exports[`browser no module: dist/browser-no-module.browser.cjs.js 1`] = `
Object.defineProperty(exports, '__esModule', { value: true });
let thing = "wow";
{
thing = "something";
}
{
thing += "other";
}
var thing$1 = thing;
exports["default"] = thing$1;
exports.default = thing$1;
"
`;

Expand All @@ -24,15 +27,18 @@ exports[`browser no module: dist/browser-no-module.cjs.dev.js 1`] = `
Object.defineProperty(exports, '__esModule', { value: true });
let thing = "wow";
if (typeof window !== "undefined") {
thing = "something";
}
if (typeof document !== undefined) {
thing += "other";
}
var thing$1 = thing;
exports["default"] = thing$1;
exports.default = thing$1;
"
`;

Expand All @@ -53,15 +59,18 @@ exports[`browser no module: dist/browser-no-module.cjs.prod.js 1`] = `
Object.defineProperty(exports, '__esModule', { value: true });
let thing = "wow";
if (typeof window !== "undefined") {
thing = "something";
}
if (typeof document !== undefined) {
thing += "other";
}
var thing$1 = thing;
exports["default"] = thing$1;
exports.default = thing$1;
"
`;

Expand Down Expand Up @@ -96,7 +105,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = "something";
exports["default"] = index;
exports.default = index;
"
`;

Expand All @@ -118,7 +127,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var index = "something";
exports["default"] = index;
exports.default = index;
"
`;

Expand Down Expand Up @@ -251,7 +260,7 @@ var Foo = /*#__PURE__*/_createClass(function Foo() {
_classCallCheck(this, Foo);
});
exports["default"] = Foo;
exports.default = Foo;
"
`;
Expand All @@ -278,7 +287,7 @@ var Foo = /*#__PURE__*/_createClass(function Foo() {
_classCallCheck(this, Foo);
});
exports["default"] = Foo;
exports.default = Foo;
"
`;
Expand Down

0 comments on commit d90f745

Please sign in to comment.