feat: bundle plugin src/ on demand via esbuild
This commit is contained in:
@@ -42,6 +42,10 @@ const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
allowedDevOrigins: ["192.168.1.51"],
|
||||
basePath: basePath || undefined,
|
||||
// esbuild ships native binaries + a README the bundler can't parse; load
|
||||
// it from node_modules at runtime instead of trying to bundle it. Used by
|
||||
// PLUGIN_DEV_DIR's on-the-fly bundler.
|
||||
serverExternalPackages: ["esbuild"],
|
||||
turbopack: {
|
||||
root: import.meta.dirname,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user