-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support solidjs libraries #5059
Conversation
🦋 Changeset detectedLatest commit: d8994c5 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
} | ||
const require = createRequire(pkgPath); | ||
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')); | ||
const deps = [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.devDependencies || {})]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this include peerDependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part scans for the root project package.json
, so I'm not sure if peerDependencies
would make sense here 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just needs to have the lockfile updated
Changes
Fix #4871
ssr.noExternal
same as vite-plugin-solid__astro_tag_component__
in node_modules, since it importsastro/server/index.js
in node_modules (doesn't work in pnpm). This PR pre-resolveastro/server/index.js
to an absolute path.Testing
Added
@solidjs/router
to test, which previously would error the app entirely.Docs
Not sure if we should document the
noExternal
behaviour, it might be an implementation detail we want to hide.