mirror of https://github.com/zulip/zulip.git
debug-require: Rename to *.cjs.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
2c68ee08d2
commit
73f7818510
|
@ -291,7 +291,7 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
{
|
||||
files: ["web/debug-require.js"],
|
||||
files: ["web/debug-require.cjs"],
|
||||
env: {
|
||||
browser: true,
|
||||
es2020: false,
|
||||
|
|
|
@ -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!);
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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"},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue