Franco Gotusso
11/29/2021, 4:13 PMroot
├── package-a/
│ ├── package.json
│ ├── tsconfig.json
│
├── package-b/
├── package.json
├── tsconfig.json
And package-a references package-b in the following way
package-a/package.json
{
"dependencies": {
"@company/package-b": 1.0.0,
}
}
package-a/tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@company/package-a/*": [
"src/*"
],
"@company/package-b/*": [
"../package-b/src/*"
]
}
}
}
We're doing this to avoid repackaging and reinstalling package-b every time while developing, but we now noticed that while running sst start
, package-b
gets added automatically to externalModules
and hence not bundled when in reality we want it to be bundled. Any suggestions on how to work around this or make it better? Thanks!thdxr
11/29/2021, 4:19 PMthdxr
11/29/2021, 4:19 PMthdxr
11/29/2021, 4:20 PMFranco Gotusso
11/29/2021, 4:43 PMFranco Gotusso
11/29/2021, 4:44 PMFranco Gotusso
11/29/2021, 4:45 PMthdxr
11/29/2021, 4:55 PMthdxr
11/29/2021, 4:55 PMthdxr
11/29/2021, 4:55 PMFranco Gotusso
11/29/2021, 4:59 PMthdxr
11/29/2021, 5:06 PMFranco Gotusso
11/29/2021, 5:25 PMthdxr
11/29/2021, 6:09 PM