Skip to content
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

Browser Support #92

Open
curran opened this issue Jan 27, 2020 · 1 comment
Open

Browser Support #92

curran opened this issue Jan 27, 2020 · 1 comment
Labels

Comments

@curran
Copy link

curran commented Jan 27, 2020

I notice that this plugin is not used in the Svelte REPL implementation, but instead the REPL indroduces its own Rollup plugin https://github.com/sveltejs/svelte-repl/blob/master/src/workers/bundler/index.js#L101

I'm just curious why is this? Might it make sense to instead use this package (rollup-plugin-svelte) inside the REPL and unify the duplication? If not, what is the barrier? I see lots of non-browser-compatible invocations such as writeFileSync https://github.com/sveltejs/rollup-plugin-svelte/blob/master/index.js#L101, and am wondering if they could be possibly refactored to support a browser environment as well.

I'm currently exploring ways of compiling Svelte programs in the browser and am eager to learn the best way to make this happen.

@swyxio
Copy link

swyxio commented Feb 2, 2020

you might also draw inspiration from @pngwn's work here https://github.com/pngwn/bristech-2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants