Hello! We have monorepo with some projects and packages. Token defined in shared package but bind to value in application. Applications is not defined as npm workspace, so they have own dependency tree and node_modules in application not the same as node_modules in packages. So we use webpack resolve aliases to dedupe some packages. We use simply function to resolve package relative to application root:
Hello! We have monorepo with some projects and packages. Token defined in shared package but bind to value in application. Applications is not defined as npm workspace, so they have own dependency tree and node_modules in application not the same as node_modules in packages. So we use webpack resolve aliases to dedupe some packages. We use simply function to resolve package relative to application root:
This code works with many libraries, but get error with brandi:
'ERR_PACKAGE_PATH_NOT_EXPORTED'
I think its enough to allow package.json export in package.json 'exports' field to fix it.