Skip to content

Commit

Permalink
Update ci.yml (#783)
Browse files Browse the repository at this point in the history
* Update ci.yml

* seems to work
  • Loading branch information
dummdidumm authored Nov 9, 2023
1 parent 31ce52c commit 61ae116
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
branches:
- main
- v1
- v2
pull_request:
branches:
- main
- v1
- v2
env:
# we call `pnpm playwright install` instead
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- v1
- v2
permissions: {}

jobs:
Expand Down
1 change: 1 addition & 0 deletions packages/vite-plugin-svelte/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export function svelte(inlineOptions) {
return;
}
try {
// @ts-ignore doesn't exist in Svelte 4
const compileResult = await svelteCompiler.compileModule(code, {
generate: ssr ? 'ssr' : 'dom',
filename: moduleRequest.filename
Expand Down
1 change: 1 addition & 0 deletions packages/vite-plugin-svelte/src/utils/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function esbuildSveltePlugin(options) {
async function compileSvelte(options, { filename, code }, statsCollection) {
if (isSvelte5 && filename.endsWith(svelteModuleExtension)) {
const endStat = statsCollection?.start(filename);
// @ts-ignore doesn't exist in Svelte 4
const compiled = svelte.compileModule(code, {
filename,
generate: 'dom',
Expand Down

0 comments on commit 61ae116

Please sign in to comment.