Files
webstudio/apps/builder/remix.config.js
T
Bogdan Chadkin f08fe859bb refactor: bump change-case (#2428)
Ref https://github.com/blakeembrey/change-case/releases

Change case in last major merged many packages into one to simplify
maintaining and usage. A few packages like title-case are still separate
as more rare case.

- replaced no-case with change-case (merged into change-case)
- replaced param-case with change-case (merged into change-case and
renamed to kebab (finally))
- replaced camelcase with change-case (has own camelcase utility)
- bumped title-case
2023-10-08 01:03:59 +04:00

58 lines
1.3 KiB
JavaScript

require("./env-check");
/**
* @type {import('@remix-run/dev').AppConfig}
*/
module.exports = {
publicPath: "/build/",
serverBuildPath: "build/index.js",
serverMainFields: ["main", "module"],
serverModuleFormat: "cjs",
serverPlatform: "node",
serverMinify: false,
// This makes sure remix bundles monorepo packages which are always
// sym-linked and can't be hoisted. You could also manually name packages
// e.g. ["@webstudio-is/ui", ...]
serverDependenciesToBundle: [
/@webstudio-is\/(?!prisma-client)/,
"pretty-bytes",
"nanoid",
"nanoevents",
"nanostores",
"@nanostores/react",
/micromark/,
/mdast-/,
/unist-/,
"decode-named-character-reference",
"character-entities",
"devlop",
"ccount",
"markdown-table",
"zwitch",
"escape-string-regexp",
"longest-streak",
"node-fetch",
"immerhin",
"strip-indent",
"change-case",
"title-case",
],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
watchPaths: () => {
return ["../../packages/*/lib/**/*.js"];
},
// remix will disable all polyfills by default
serverNodeBuiltinsPolyfill: { modules: {} },
future: {
v2_errorBoundary: true,
v2_routeConvention: true,
v2_meta: true,
v2_normalizeFormMethod: true,
v2_headers: true,
v2_dev: true,
},
};