Skip to content

Commit 9f1a7ba

Browse files
committed
reload hack
1 parent eaf46f6 commit 9f1a7ba

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/playground/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
You may use this package to experiment with your changes to Svelte.
22

3-
To prevent any changes you make from being committed, run `git update-index --skip-worktree ./**/*.*` in this directory.
3+
To prevent any changes you make in this directory from being accidentally committed, run `git update-index --skip-worktree ./**/*.*` in this directory.
44

55
If you would actually like to make some changes to the files here for everyone then run `git update-index --no-skip-worktree ./**/*.*` before committing.

packages/playground/vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { defineConfig } from 'vite';
22
import { svelte } from '@sveltejs/vite-plugin-svelte';
33

4+
// Do not remove this import. It's needed to trigger reloads when the compiler changes.
5+
import { compile } from '../svelte/src/compiler/index.js';
6+
47
// https://vitejs.dev/config/
58
export default defineConfig({
69
plugins: [

0 commit comments

Comments
 (0)