mirror of https://github.com/sveltejs/svelte
parent
945a90b56c
commit
1bc89b5eb6
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: deconflict generated names against globals
|
@ -0,0 +1,15 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<p>hello</p>`,
|
||||
|
||||
before_test: () => {
|
||||
// @ts-expect-error
|
||||
globalThis.frag = 'hello';
|
||||
},
|
||||
|
||||
after_test: () => {
|
||||
// @ts-expect-error
|
||||
delete globalThis.frag;
|
||||
}
|
||||
});
|
@ -0,0 +1 @@
|
||||
<p>{frag}</p>
|
Loading…
Reference in new issue