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

Custom path for shared helpers/methods #218

Closed
Rich-Harris opened this issue Dec 20, 2016 · 3 comments · Fixed by #219
Closed

Custom path for shared helpers/methods #218

Rich-Harris opened this issue Dec 20, 2016 · 3 comments · Fixed by #219

Comments

@Rich-Harris
Copy link
Member

Right now the path for helpers and methods is svelte/shared.js. Would be good to make this customizable so that e.g. rollup-plugin-svelte can resolve the path itself, without the app developer needing to use rollup-plugin-node-resolve

@Rich-Harris
Copy link
Member Author

In fact, thinking further on this, perhaps the solution to this is to have a shared option instead of options.standalone, where shared: true is equivalent to shared: 'svelte/shared.js', and shared: false is equivalent to standalone: true.

Rich-Harris added a commit that referenced this issue Dec 21, 2016
allow custom path for helpers
@Ryuno-Ki
Copy link

Hm, I wonder what would happen if I set options.standalone to a value different to true and shared:false

@nikku
Copy link
Contributor

nikku commented Dec 21, 2016

options.standalone is gonna be replaced with options.shared.

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

Successfully merging a pull request may close this issue.

3 participants