Skip to content

Commit 60c65ed

Browse files
authored
fix(live-preview-vue): update build config to compile as esm (#14293)
The distributed files for `@payloadcms/live-preview-vue` are compiled to commonjs instead of ESM, which causes issues in ESM based projects like when using Nuxt. This PR fixes this issue by updating the built config to be `es6`, matching what most other packages are using. Related to #12806
1 parent 306974d commit 60c65ed

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/pr-title.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
kv-redis
5454
live-preview
5555
live-preview-react
56+
live-preview-vue
5657
next
5758
payload-cloud
5859
plugin-cloud

packages/live-preview-vue/.swcrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
}
1111
},
1212
"module": {
13-
"type": "commonjs"
13+
"type": "es6"
1414
}
1515
}

0 commit comments

Comments
 (0)