Skip to content

Commit aba981b

Browse files
author
Sean Wilson
committed
fix issue w/ import.meta.env not existing w/o bundler
1 parent 3f2b3fd commit aba981b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/version.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export default (import.meta.env.version = __SVELTE_JSONSCHEMA_FORM_VERSION__ ) as string;
1+
const env = import.meta?.env ?? {};
2+
export default (env.version = __SVELTE_JSONSCHEMA_FORM_VERSION__ ) as string;

0 commit comments

Comments
 (0)