diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js index 9db89fb376..a7919aaffe 100644 --- a/frontend_tests/zjsunit/index.js +++ b/frontend_tests/zjsunit/index.js @@ -23,7 +23,11 @@ require("@babel/register")({ "^" + _.escapeRegExp(path.resolve(__dirname, "../../static/shared/js") + path.sep), ), ], - plugins: ["rewire-ts", ["@babel/plugin-transform-modules-commonjs", {lazy: () => true}]], + plugins: [ + "babel-plugin-lazy-require", + "babel-plugin-rewire-ts", + ["@babel/plugin-transform-modules-commonjs", {lazy: () => true}], + ], }); // Create a helper function to avoid sneaky delays in tests. diff --git a/package.json b/package.json index fa5c46fb97..331425fef6 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,7 @@ "@types/webpack-dev-server": "^3.1.6", "@typescript-eslint/eslint-plugin": "^4.0.1", "@typescript-eslint/parser": "^4.0.1", + "babel-plugin-lazy-require": "^1.0.3", "babel-plugin-rewire-ts": "^1.4.0", "difflib": "^0.2.4", "eslint": "^7.2.0", diff --git a/version.py b/version.py index e7ae426299..853e74c92e 100644 --- a/version.py +++ b/version.py @@ -45,4 +45,4 @@ API_FEATURE_LEVEL = 39 # historical commits sharing the same major version, in which case a # minor version bump suffices. -PROVISION_VERSION = "128.1" +PROVISION_VERSION = "128.2" diff --git a/yarn.lock b/yarn.lock index 73dc097286..e28f00fd60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2187,6 +2187,11 @@ babel-plugin-dynamic-import-node@^2.3.3: dependencies: object.assign "^4.1.0" +babel-plugin-lazy-require@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/babel-plugin-lazy-require/-/babel-plugin-lazy-require-1.0.3.tgz#8307b3572c6546799a9ef69637da9711043b29e0" + integrity sha512-EtHlh2iB6724cpJaGNvuRwN6zkLXIA+xLKUwIqJwczT9xAA70fPv9XWs0NQKs5zkLppAT5wLn6nK6hwINXOSZg== + babel-plugin-rewire-ts@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/babel-plugin-rewire-ts/-/babel-plugin-rewire-ts-1.4.0.tgz#6c814d5aa3ef3d8c0d0c7a27891877fb28930e5b"