mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
26 lines
667 B
JavaScript
26 lines
667 B
JavaScript
/** @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 }) {
|
|
if (!isServer) {
|
|
config.module.rules.push({
|
|
test: /\.worker\.(js|ts)$/,
|
|
use: {
|
|
loader: "worker-loader",
|
|
options: {
|
|
// You can tweak the filename pattern here
|
|
filename: "static/chunks/[hash].worker.js",
|
|
},
|
|
},
|
|
});
|
|
}
|
|
|
|
return config;
|
|
},
|
|
};
|