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

Support for @rollup/plugin-alias #22

Open
bensleveritt opened this issue Dec 10, 2019 · 1 comment
Open

Support for @rollup/plugin-alias #22

bensleveritt opened this issue Dec 10, 2019 · 1 comment

Comments

@bensleveritt
Copy link

bensleveritt commented Dec 10, 2019

I see rollup-plugin-import-resolver is supported (#10), and I'm not sure how the resolution strategy works, but svelte-intellisense doesn't work with @rollup/plugin-alias AFAICT.

If someone could illuminate on the strategy, I might be able to help fix it.

With aliasing:
CleanShot 2019-12-10 at 11 58 34@2x

Without aliasing:
CleanShot 2019-12-10 at 11 58 49@2x

Where the relevant part of the rollup config is simply:

alias({
        entries: { components: 'src/components', content: 'src/content' },
      }),
@bensleveritt
Copy link
Author

Just realised that the resolution strategy might work from VS Code's config.

I also have the aliases setup in a jsconfig.json:

...
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "components/*": ["./src/components/*"],
      "content/*": ["./src/content/*"]
    }
  },
...

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

No branches or pull requests

1 participant