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: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
es2020: false,
|
es2020: false,
|
||||||
|
|
|
@ -63,7 +63,7 @@ export default class DebugRequirePlugin implements webpack.WebpackPluginInstance
|
||||||
resolver.resolve(
|
resolver.resolve(
|
||||||
{},
|
{},
|
||||||
import.meta.dirname,
|
import.meta.dirname,
|
||||||
"./debug-require.js",
|
"./debug-require.cjs",
|
||||||
{},
|
{},
|
||||||
(err?: Error | null, result?: string | false) => {
|
(err?: Error | null, result?: string | false) => {
|
||||||
resolve(err ? false : result!);
|
resolve(err ? false : result!);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import "../sentry.ts";
|
import "../sentry.ts";
|
||||||
import "../../debug-require.js";
|
import "../../debug-require.cjs";
|
||||||
import "../alert_popup.ts";
|
import "../alert_popup.ts";
|
||||||
import "../csrf.ts";
|
import "../csrf.ts";
|
||||||
import "../blueslip.ts";
|
import "../blueslip.ts";
|
||||||
|
|
|
@ -84,7 +84,7 @@ const config = (
|
||||||
options: {exposes: "zulip_test"},
|
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",
|
loader: "expose-loader",
|
||||||
options: {exposes: "require"},
|
options: {exposes: "require"},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue