Skip to content

Commit

Permalink
fix(jsx-email): export compile method in separate path
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Nov 24, 2024
1 parent 30541db commit 62fc48a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/core/compile.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: package
import { readFile } from 'node:fs/promises;';
import { resolve } from 'node:path';

import { compile } from 'jsx-email';
import { compile } from 'jsx-email/compile';

const templatePath = resolve(__dirname, './emails/Batman');
const outputDir = resolve(__dirname, '.compiled');
Expand Down
1 change: 0 additions & 1 deletion packages/jsx-email/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export * from './components/text.js';
// renderer
export * from './renderer/compat/context.js';
export * from './renderer/compat/hooks.js';
export * from './renderer/compile.js';
export * from './renderer/jsx-to-string.js';
export * from './renderer/render.js';
export { useData } from './renderer/suspense.js';
Expand Down

0 comments on commit 62fc48a

Please sign in to comment.