next-bun-compile 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -187,8 +187,14 @@ var knownTranspilePackages = ["pino", "pino-pretty"];
|
|
|
187
187
|
var adapter = {
|
|
188
188
|
name: "next-bun-compile",
|
|
189
189
|
modifyConfig(config, ctx) {
|
|
190
|
-
if (ctx
|
|
190
|
+
if (!ctx) {
|
|
191
|
+
throw new Error("next-bun-compile: Next.js 16+ is required. Please upgrade your Next.js version.");
|
|
192
|
+
}
|
|
193
|
+
if (ctx.phase !== "phase-production-build")
|
|
191
194
|
return config;
|
|
195
|
+
if (process.argv.includes("--webpack")) {
|
|
196
|
+
throw new Error("next-bun-compile: Webpack builds are not supported. Remove --webpack to use Turbopack (default).");
|
|
197
|
+
}
|
|
192
198
|
if (config.output !== "standalone") {
|
|
193
199
|
console.warn('next-bun-compile: Setting output to "standalone" (required for compilation)');
|
|
194
200
|
config.output = "standalone";
|