gclark-eightfold
gclark-eightfold
PD🧩 Plasmo Developers
Created by gclark-eightfold on 1/31/2024 in #🔰newbie
Building a standalone Embed
Oh absolutely. That's been the direction we've been going in with our "ui" package. We're using turborepo and pnpm workspaces (w/ "no-hoist") based on the https://github.com/t3-oss/create-t3-turbo template, but we're fighting with the parcel bundler to just get our workspace modules resolved. For instance, if the UI package has:
{
"name": "@repo/ui",
"version": "0.1.0",
"private": true,
"type": "module",
"exports": {
"./button": "./components/button.tsx"
// ... other components
}
}
{
"name": "@repo/ui",
"version": "0.1.0",
"private": true,
"type": "module",
"exports": {
"./button": "./components/button.tsx"
// ... other components
}
}
Plasmo has no problem resolving @repo/ui/button, but Parcel alone seems to only resolve it if it's @repo/ui/components/button.
8 replies