Skip to content

Commit e2d00d4

Browse files
committed
add import to build file
1 parent c34a945 commit e2d00d4

File tree

3 files changed

+85
-256
lines changed

3 files changed

+85
-256
lines changed

src/api/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const commonParams = {
2727
const require = topLevelCreateRequire(import.meta.url);
2828
const __filename = fileURLToPath(import.meta.url);
2929
const __dirname = path.dirname(__filename);
30+
import "zod-openapi/extend";
3031
`.trim(),
3132
}, // Banner for compatibility with CommonJS
3233
}

src/api/esbuild.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const buildOptions = {
3030
const require = topLevelCreateRequire(import.meta.url);
3131
const __filename = fileURLToPath(import.meta.url);
3232
const __dirname = path.dirname(__filename);
33+
import "zod-openapi/extend";
3334
`.trim(),
3435
}, // Banner for compatibility with CommonJS
3536
plugins: [copyStaticFiles({

0 commit comments

Comments
 (0)