Skip to content

Commit a8e20bd

Browse files
authored
fix(unenv-preset) add missing json import type (#8305)
1 parent bfe0f6f commit a8e20bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ fixtures/interactive-dev-tests/src/startup-error.ts
4747
fixtures/pages-redirected-config/build/*
4848
fixtures/redirected-config-worker/build/*
4949

50+
# Import attributes generate an error
51+
packages/unenv-preset/src/preset.ts
52+
5053
packages/vite-plugin-cloudflare/playground/**/*.d.ts

packages/unenv-preset/src/preset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { version } from "../package.json";
1+
import { version } from "../package.json" with { type: "json" };
22
import type { Preset } from "unenv";
33

44
// Built-in APIs provided by workerd.

0 commit comments

Comments
 (0)