New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IIFE "Variable declared more than once" #219
Comments
Could you attach the source before compiler sees the output? (remove |
@kristoferbaxter Hi! here is the code without Google Closure (this is the Svelte hello world from the online REPL). I was looking through the code in
|
Created a gist here: (https://gist.github.com/kristoferbaxter/aa44140f4186d5b1236d9a11f3b27def) Wasn't able to reproduce the issue when using Closure Compiler directly. What am I missing? |
It seems the issue is when running svelte and closure compiler one after the other. When I run rollup with just svelte it works. If I copy the output and then run rollup with only closure it also works. When they are both in the plugins (first svelte, then closure) it gives this error. |
Interesting, will take a look at the interaction. |
@tomasmcm – Can you provide a simple repo with all the necessary source to reproduce? I'd like to take a look at this soon. |
@kristoferbaxter 🙏 https://gist.github.com/tomasmcm/c414c4d2ec98a17f0449be311669b01a |
Resolved with #254, released with |
What's the issue?
When compiling a Rollup Svelte project with
format: 'iife'
andname: 'app'
there is an errorERROR - [JSC_VAR_MULTIPLY_DECLARED_ERROR] Variable app declared more than once.
How do we reproduce the issue?
Rollup config:
Run the command
rollup -c
Additional context
Changing the format to
format: 'umd'
compiles successfully.Any ideas where the issue might be?
The text was updated successfully, but these errors were encountered: