Skip to content

Commit bc4bb63

Browse files
fix(neon): use named import for postgresPlugin (#320)
The @neondatabase/vite-plugin-postgres package exports postgresPlugin as a named export, not a default export. This fixes the SyntaxError when running pnpm dev on projects created with the Neon add-on. Fixes #318
1 parent c529055 commit bc4bb63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/custom-cli/create-rwsdk/add-ons/neon/assets/neon-vite-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import postgresPlugin from '@neondatabase/vite-plugin-postgres'
1+
import { postgresPlugin } from '@neondatabase/vite-plugin-postgres'
22

33
export default postgresPlugin({
44
seed: {

packages/create/src/frameworks/react/add-ons/neon/assets/neon-vite-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import postgresPlugin from '@neondatabase/vite-plugin-postgres'
1+
import { postgresPlugin } from '@neondatabase/vite-plugin-postgres'
22

33
export default postgresPlugin({
44
seed: {

0 commit comments

Comments
 (0)