debug-require: Rename to *.cjs.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-11-12 22:13:26 -08:00 committed by Tim Abbott
parent 2c68ee08d2
commit 73f7818510
5 changed files with 4 additions and 4 deletions

View File

@ -291,7 +291,7 @@ module.exports = {
},
},
{
files: ["web/debug-require.js"],
files: ["web/debug-require.cjs"],
env: {
browser: true,
es2020: false,

View File

@ -63,7 +63,7 @@ export default class DebugRequirePlugin implements webpack.WebpackPluginInstance
resolver.resolve(
{},
import.meta.dirname,
"./debug-require.js",
"./debug-require.cjs",
{},
(err?: Error | null, result?: string | false) => {
resolve(err ? false : result!);

View File

@ -1,5 +1,5 @@
import "../sentry.ts";
import "../../debug-require.js";
import "../../debug-require.cjs";
import "../alert_popup.ts";
import "../csrf.ts";
import "../blueslip.ts";

View File

@ -84,7 +84,7 @@ const config = (
options: {exposes: "zulip_test"},
},
{
test: path.resolve(import.meta.dirname, "debug-require.js"),
test: path.resolve(import.meta.dirname, "debug-require.cjs"),
loader: "expose-loader",
options: {exposes: "require"},
},