Import from subfolder of npm package

后端 未结 5 1026
耶瑟儿~
耶瑟儿~ 2020-12-29 05:08

I\'ve been working on creating a small library of React components for use in several other projects. I am publishing the package internally (using a private GitHub reposito

5条回答
  •  温柔的废话
    2020-12-29 05:34

    I'am an angular developer never used react but what I could tell that material-ui are using monorepo where same concept exists in angular where we create one workspace and this workspace hold multiple project/packages as named in react. for more info Workspaces with Yarn

    Material-ui using fake paths in tsconfig to make it appears like src folder doesn't exists this from the git you provided: tsconfig.json

提交回复
热议问题