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

resolve using pkg.svelte and pkg.svelte.root #9

Merged
merged 3 commits into from
Jun 12, 2017
Merged

Conversation

Rich-Harris
Copy link
Member

This implements the first part of sveltejs/svelte#604 — if a component has a pkg.svelte property or a pkg['svelte.root'] property, this plugin will use that to locate the original uncompiled component, rather than the compiled distributable version.

Future work:

  • put the resolution logic in a separate module so it can be used by other things like svelte-loader?
  • Warn on version mismatches
  • Respect pkg.engines

@Rich-Harris Rich-Harris merged commit 9194fdf into master Jun 12, 2017
@Rich-Harris Rich-Harris deleted the resolveid branch June 12, 2017 03:18
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 this pull request may close these issues.

1 participant