Skip to content

Commit

Permalink
doc: add note about ESM only
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Feb 9, 2024
1 parent fe05a3c commit a1b4371
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/app/docs/core/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ npm install @t3-oss/env-core zod

</Callout>

<Callout>

`@t3-oss/env-core` is an ESM only package. Make sure that your tsconfig uses a module resolution that can read `package.json#exports` (`Bundler` is recommended).

</Callout>

### Create your schema

Then, you can create your schema like so:
Expand Down
6 changes: 6 additions & 0 deletions docs/src/app/docs/nextjs/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ pnpm add @t3-oss/env-nextjs zod

</Callout>

<Callout>

`@t3-oss/env-core` is an ESM only package. Make sure that your tsconfig uses a module resolution that can read `package.json#exports` (`Bundler` is recommended).

</Callout>

### Create your schema

```ts title="src/env.ts"
Expand Down
6 changes: 6 additions & 0 deletions docs/src/app/docs/nuxt/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ pnpm add @t3-oss/env-nuxt zod

</Callout>

<Callout>

`@t3-oss/env-core` is an ESM only package. Make sure that your tsconfig uses a module resolution that can read `package.json#exports` (`Bundler` is recommended).

</Callout>

### Create your schema

```ts title="env.ts"
Expand Down

0 comments on commit a1b4371

Please sign in to comment.