Describe the bug
When trying to reference import.meta.url in a svelte script, a compiler error is thrown.
import.meta.url allows es modules to figure out what their filename/url is.
Logs

To Reproduce
Copy/paste this into the REPL and view the console log error.
<script>
console.log(import.meta.url);
</script>
Expected behavior
Compilation should leave import.meta.* alone :)
Severity
This is blocking a proof of concept i'm developing for a svelte static site generator that eliminates static trees and only hydrates trees marked as dynamic (partial hydration).
Describe the bug
When trying to reference
import.meta.urlin a svelte script, a compiler error is thrown.import.meta.url allows es modules to figure out what their filename/url is.
Logs
To Reproduce
Copy/paste this into the REPL and view the console log error.
Expected behavior
Compilation should leave
import.meta.*alone :)Severity
This is blocking a proof of concept i'm developing for a svelte static site generator that eliminates static trees and only hydrates trees marked as dynamic (partial hydration).