Does nx support importin…

less than 1 minute read

Does nx support importing from nested folders? I am currently using Lerna and my use case is for React.lazy, it only supports default exports, so you can’t do: package-a.js

const LazyLoadedComponent = import("@package-b/core/component")

You have to do:

const LazyLoadedComponent = import("@package-b/dist/core/component")

Which is no that clean and common as when using npm registry packages.

Responses:

That should just work. Packages, importing, … is just TypeScript.

Updated: