Skip to content
Discussion options

You must be logged in to vote

Exactly the same way as you would use static imports — make sure you don't break the rules of imports on slices:

  1. When importing from inside the same slice, use relative paths
  2. When importing from another slice, use aliases and only import from the public API

If the public API becomes a problem for tree shaking, we have some advice here — https://feature-sliced.github.io/documentation/docs/reference/public-api#issues-with-index-files

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Vadiok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants