mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-06 20:13:35 +09:00
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
58 lines
1.3 KiB
JavaScript
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,
|
|
},
|
|
};
|