Skip to content

Commit 8c80276

Browse files
author
DevBot
committed
refactor(adapter): default JSX to element interface
1 parent 145f270 commit 8c80276

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/adapter-vite/src/cli/build-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async function buildClient(ctx: OpenElementBuildContext): Promise<void> {
250250
// does not recognize (causes [object Object] rendering).
251251
esbuild: {
252252
jsx: 'automatic',
253-
jsxImportSource: '@openelement/core',
253+
jsxImportSource: '@openelement/element',
254254
},
255255
build: {
256256
outDir: clientOutDir,

packages/adapter-vite/src/cli/build-ssg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ if (typeof globalThis.customElements === 'undefined') {
368368
// ADR-0057: JSX automatic runtime, same reason as build-client.ts.
369369
// SSG build also processes .tsx island files for SSR rendering.
370370
jsx: 'automatic',
371-
jsxImportSource: '@openelement/core',
371+
jsxImportSource: '@openelement/element',
372372
tsconfigRaw: {
373373
compilerOptions: {
374374
useDefineForClassFields: false,

packages/adapter-vite/src/plugin-mdx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface OpenMdxPluginOptions {
88

99
export function mdxPlugin(options: OpenMdxPluginOptions = {}): Plugin {
1010
const plugin = mdx({
11-
jsxImportSource: options.jsxImportSource ?? '@openelement/core',
11+
jsxImportSource: options.jsxImportSource ?? '@openelement/element',
1212
providerImportSource: undefined,
1313
development: options.development ?? false,
1414
}) as Plugin;

0 commit comments

Comments
 (0)