mirror of https://github.com/zulip/zulip.git
webpack: Remove resolve.extensions from config.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ec3177c834
commit
e73f1a74f3
|
@ -1,82 +1,82 @@
|
||||||
{
|
{
|
||||||
"activity": [
|
"activity": [
|
||||||
"./third/bootstrap/css/bootstrap.portico.css",
|
"./third/bootstrap/css/bootstrap.portico.css",
|
||||||
"./src/bundles/common",
|
"./src/bundles/common.ts",
|
||||||
"sorttable",
|
"sorttable",
|
||||||
"./styles/portico/activity.css"
|
"./styles/portico/activity.css"
|
||||||
],
|
],
|
||||||
"billing": [
|
"billing": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/billing/helpers",
|
"./src/billing/helpers.ts",
|
||||||
"./src/billing/billing",
|
"./src/billing/billing.ts",
|
||||||
"./styles/portico/billing.css"
|
"./styles/portico/billing.css"
|
||||||
],
|
],
|
||||||
"sponsorship": [
|
"sponsorship": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"jquery-validation",
|
"jquery-validation",
|
||||||
"./src/portico/signup",
|
"./src/portico/signup.ts",
|
||||||
"./src/billing/sponsorship",
|
"./src/billing/sponsorship.ts",
|
||||||
"./styles/portico/billing.css"
|
"./styles/portico/billing.css"
|
||||||
],
|
],
|
||||||
"billing_auth": [
|
"billing_auth": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/billing/helpers",
|
"./src/billing/helpers.ts",
|
||||||
"jquery-validation",
|
"jquery-validation",
|
||||||
"./src/billing/remote_billing_auth",
|
"./src/billing/remote_billing_auth.ts",
|
||||||
"./src/billing/deactivate_server",
|
"./src/billing/deactivate_server.ts",
|
||||||
"./styles/portico/billing.css"
|
"./styles/portico/billing.css"
|
||||||
],
|
],
|
||||||
"upgrade": [
|
"upgrade": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/billing/helpers",
|
"./src/billing/helpers.ts",
|
||||||
"./src/billing/upgrade",
|
"./src/billing/upgrade.ts",
|
||||||
"jquery-validation",
|
"jquery-validation",
|
||||||
"./styles/portico/billing.css"
|
"./styles/portico/billing.css"
|
||||||
],
|
],
|
||||||
"billing-event-status": [
|
"billing-event-status": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/billing/event_status",
|
"./src/billing/event_status.ts",
|
||||||
"./src/billing/helpers",
|
"./src/billing/helpers.ts",
|
||||||
"./styles/portico/billing.css"
|
"./styles/portico/billing.css"
|
||||||
],
|
],
|
||||||
"portico": ["./src/bundles/portico"],
|
"portico": ["./src/bundles/portico.ts"],
|
||||||
"error-styles": [
|
"error-styles": [
|
||||||
"./third/bootstrap/css/bootstrap.portico.css",
|
"./third/bootstrap/css/bootstrap.portico.css",
|
||||||
"./styles/portico/portico_styles.css"
|
"./styles/portico/portico_styles.css"
|
||||||
],
|
],
|
||||||
"common": ["./src/bundles/common"],
|
"common": ["./src/bundles/common.ts"],
|
||||||
"help": [
|
"help": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"simplebar/dist/simplebar.css",
|
"simplebar/dist/simplebar.css",
|
||||||
"simplebar",
|
"simplebar",
|
||||||
"./src/portico/help",
|
"./src/portico/help.ts",
|
||||||
"./src/portico/tabbed-instructions"
|
"./src/portico/tabbed-instructions.ts"
|
||||||
],
|
],
|
||||||
"landing-page": [
|
"landing-page": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/portico/landing-page",
|
"./src/portico/landing-page.ts",
|
||||||
"./styles/portico/landing_page.css"
|
"./styles/portico/landing_page.css"
|
||||||
],
|
],
|
||||||
"landing-page-with-pricing": [
|
"landing-page-with-pricing": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/portico/landing-page",
|
"./src/portico/landing-page.ts",
|
||||||
"./styles/portico/landing_page.css",
|
"./styles/portico/landing_page.css",
|
||||||
"./styles/portico/pricing_plans.css"
|
"./styles/portico/pricing_plans.css"
|
||||||
],
|
],
|
||||||
"landing-page-hello": [
|
"landing-page-hello": [
|
||||||
"./src/bundles/hello",
|
"./src/bundles/hello.ts",
|
||||||
"./src/portico/hello",
|
"./src/portico/hello.ts",
|
||||||
"./src/portico/landing-page",
|
"./src/portico/landing-page.ts",
|
||||||
"./src/portico/header",
|
"./src/portico/header.ts",
|
||||||
"./styles/portico/svg_icons.css",
|
"./styles/portico/svg_icons.css",
|
||||||
"./styles/portico/hello.css",
|
"./styles/portico/hello.css",
|
||||||
"./styles/portico/navbar.css",
|
"./styles/portico/navbar.css",
|
||||||
"./styles/portico/footer.css"
|
"./styles/portico/footer.css"
|
||||||
],
|
],
|
||||||
"plans-page": [
|
"plans-page": [
|
||||||
"./src/bundles/hello",
|
"./src/bundles/hello.ts",
|
||||||
"./src/portico/landing-page",
|
"./src/portico/landing-page.ts",
|
||||||
"./src/portico/header",
|
"./src/portico/header.ts",
|
||||||
"./styles/portico/hello.css",
|
"./styles/portico/hello.css",
|
||||||
"./styles/portico/navbar.css",
|
"./styles/portico/navbar.css",
|
||||||
"./styles/portico/footer.css",
|
"./styles/portico/footer.css",
|
||||||
|
@ -85,36 +85,36 @@
|
||||||
"./styles/portico/comparison_table.css"
|
"./styles/portico/comparison_table.css"
|
||||||
],
|
],
|
||||||
"integrations": [
|
"integrations": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/portico/integrations",
|
"./src/portico/integrations.js",
|
||||||
"./styles/portico/landing_page.css",
|
"./styles/portico/landing_page.css",
|
||||||
"./styles/portico/integrations.css"
|
"./styles/portico/integrations.css"
|
||||||
],
|
],
|
||||||
"communities": [
|
"communities": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/portico/communities",
|
"./src/portico/communities.ts",
|
||||||
"./styles/portico/landing_page.css",
|
"./styles/portico/landing_page.css",
|
||||||
"./styles/portico/integrations.css"
|
"./styles/portico/integrations.css"
|
||||||
],
|
],
|
||||||
"signup": ["./src/bundles/portico", "jquery-validation", "./src/portico/signup"],
|
"signup": ["./src/bundles/portico.ts", "jquery-validation", "./src/portico/signup.ts"],
|
||||||
"register": ["./src/bundles/portico", "jquery-validation", "./src/portico/signup"],
|
"register": ["./src/bundles/portico.ts", "jquery-validation", "./src/portico/signup.ts"],
|
||||||
"confirm-preregistrationuser": [
|
"confirm-preregistrationuser": [
|
||||||
"./third/bootstrap/css/bootstrap.portico.css",
|
"./third/bootstrap/css/bootstrap.portico.css",
|
||||||
"./src/bundles/common",
|
"./src/bundles/common.ts",
|
||||||
"./src/portico/confirm-preregistrationuser"
|
"./src/portico/confirm-preregistrationuser.ts"
|
||||||
],
|
],
|
||||||
"support": [
|
"support": [
|
||||||
"./third/bootstrap/css/bootstrap.portico.css",
|
"./third/bootstrap/css/bootstrap.portico.css",
|
||||||
"./src/bundles/common",
|
"./src/bundles/common.ts",
|
||||||
"sorttable",
|
"sorttable",
|
||||||
"./styles/portico/activity.css",
|
"./styles/portico/activity.css",
|
||||||
"./src/support/support",
|
"./src/support/support.ts",
|
||||||
"./src/portico/tippyjs",
|
"./src/portico/tippyjs.ts",
|
||||||
"tippy.js/dist/tippy.css"
|
"tippy.js/dist/tippy.css"
|
||||||
],
|
],
|
||||||
"desktop-login": ["./src/bundles/portico", "./src/portico/desktop-login"],
|
"desktop-login": ["./src/bundles/portico.ts", "./src/portico/desktop-login.ts"],
|
||||||
"desktop-redirect": ["./src/bundles/portico", "./src/portico/desktop-redirect"],
|
"desktop-redirect": ["./src/bundles/portico.ts", "./src/portico/desktop-redirect.ts"],
|
||||||
"stats": ["./src/bundles/portico", "./styles/portico/stats.css", "./src/stats/stats"],
|
"stats": ["./src/bundles/portico.ts", "./styles/portico/stats.css", "./src/stats/stats.ts"],
|
||||||
"app": ["./src/bundles/app"],
|
"app": ["./src/bundles/app.ts"],
|
||||||
"digest": ["./src/bundles/portico"]
|
"digest": ["./src/bundles/portico.ts"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ const config = (
|
||||||
: Object.fromEntries(
|
: Object.fromEntries(
|
||||||
Object.entries({...assets, ...dev_assets}).map(([name, paths]) => [
|
Object.entries({...assets, ...dev_assets}).map(([name, paths]) => [
|
||||||
name,
|
name,
|
||||||
[...paths, "./src/debug"],
|
[...paths, "./src/debug.ts"],
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
module: {
|
module: {
|
||||||
|
@ -209,10 +209,6 @@ const config = (
|
||||||
chunkFilename: production ? "[contenthash].js" : "[id].js",
|
chunkFilename: production ? "[contenthash].js" : "[id].js",
|
||||||
crossOriginLoading: "anonymous",
|
crossOriginLoading: "anonymous",
|
||||||
},
|
},
|
||||||
resolve: {
|
|
||||||
...baseConfig.resolve,
|
|
||||||
extensions: [".ts", ".js"],
|
|
||||||
},
|
|
||||||
// We prefer cheap-module-source-map over any eval-* options
|
// We prefer cheap-module-source-map over any eval-* options
|
||||||
// because stacktrace-gps doesn't currently support extracting
|
// because stacktrace-gps doesn't currently support extracting
|
||||||
// the source snippets with the eval-* options.
|
// the source snippets with the eval-* options.
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
{
|
{
|
||||||
"dev-login": ["./src/bundles/portico", "./src/portico/dev-login"],
|
"dev-login": ["./src/bundles/portico.ts", "./src/portico/dev-login.ts"],
|
||||||
"dev-integrations-panel": [
|
"dev-integrations-panel": [
|
||||||
"./src/bundles/portico",
|
"./src/bundles/portico.ts",
|
||||||
"./src/portico/integrations_dev_panel",
|
"./src/portico/integrations_dev_panel.ts",
|
||||||
"./styles/portico/integrations_dev_panel.css",
|
"./styles/portico/integrations_dev_panel.css",
|
||||||
"./src/reload_state",
|
"./src/reload_state.ts",
|
||||||
"./src/channel"
|
"./src/channel.ts"
|
||||||
],
|
],
|
||||||
"dev-email-log": [
|
"dev-email-log": [
|
||||||
"./src/bundles/common",
|
"./src/bundles/common.ts",
|
||||||
"./src/portico/email_log",
|
"./src/portico/email_log.ts",
|
||||||
"./src/portico/portico_modals",
|
"./src/portico/portico_modals.ts",
|
||||||
"./styles/portico/email_log.css",
|
"./styles/portico/email_log.css",
|
||||||
"./src/reload_state",
|
"./src/reload_state.ts",
|
||||||
"./src/channel"
|
"./src/channel.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue