Skip to content

Commit c3de17e

Browse files
sgwannabeclaude
andcommitted
fix(assets): remove invalid strict option from UnpluginTypia config
`@ryoppippi/unplugin-typia` Options type doesn't have a `strict` field (I confused it with typia core's strict validators). The PR-2 CI template-build job caught this with TS2353 in next.config.ts:32 and vitest.config.ts:19 — exactly the kind of regression the new job was designed to find. Working as intended. next.config.ts: keep `cache: true`. vitest.config.ts: pass no options (auto-detects typia.* calls). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 96700b6 commit c3de17e

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

plugins/preview-forge/assets/next.config.ts.standard.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const nextConfig: NextConfig = {
2929
config.plugins = config.plugins || [];
3030
config.plugins.push(
3131
UnpluginTypia({
32-
strict: true,
3332
// Cache transforms for faster rebuilds. Safe for hackathon-scale projects.
3433
cache: true,
3534
}),

plugins/preview-forge/assets/vitest.config.ts.standard.template

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ import UnpluginTypia from "@ryoppippi/unplugin-typia/vite";
1414

1515
export default defineConfig({
1616
plugins: [
17-
UnpluginTypia({
18-
// Strict mode catches misuse of typia decorators at build time.
19-
strict: true,
20-
}),
17+
// unplugin-typia auto-detects typia.* calls and inserts the AOT transform.
18+
// No options required for the standard preset.
19+
UnpluginTypia(),
2120
],
2221
test: {
2322
// Pure-lib tests — no DOM, no jsdom. If a future test needs DOM,

0 commit comments

Comments
 (0)