mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
update config
This commit is contained in:
parent
828b9287c5
commit
9412fcc6d7
3 changed files with 67 additions and 37 deletions
|
@ -1,12 +1,13 @@
|
|||
// next.config.js
|
||||
/** @type {import('next').NextConfig} */
|
||||
module.exports = {
|
||||
distDir: "build",
|
||||
typescript: {
|
||||
// Temporarily ignore build errors until the TS config mismatch is resolved
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
// Transpile sibling/parent packages in a monorepo
|
||||
transpilePackages: ["../"],
|
||||
webpack(config, { isServer }) {
|
||||
config.distDir = "build";
|
||||
config.typescript = {
|
||||
ignoreBuildErrors: true,
|
||||
};
|
||||
config.transpileModules = ["../"];
|
||||
|
||||
if (!isServer) {
|
||||
config.module.rules.push({
|
||||
test: /\.worker\.(js|ts)$/,
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
"@types/react": "19.0.10",
|
||||
"@types/react-dom": "19.0.4",
|
||||
"path2d-polyfill": "2.0.1",
|
||||
"typescript": "^5"
|
||||
"typescript": "^5",
|
||||
"worker-loader": "3.0.8"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue