-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: port upstream vite-node
dev server implementation
#779
Conversation
38bbbd4
to
63fcab2
Compare
63fcab2
to
73a1531
Compare
In general it looks good to me. Can you point me out the changes you made to the original code when doing that port, if any? It would be helpful to review. Thanks |
This reverts commit f01f873.
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.
I commented on the changes made from the original code!
'entry.mjs': { | ||
file: 'entry.mjs', |
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.
Changes made to original code.
original code is
[ctx.entry]: {
file: ctx.entry
}
// Build and watch | ||
const _doBuild = async () => { | ||
const start = Date.now() | ||
const { code, ids } = await bundleRequest(options, '/.nuxt/entry.mjs') |
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.
Changes made to original code.
original code is
const { code, ids } = await bundleRequest(options, ctx.entry)
'entry.mjs': { | ||
isEntry: true, | ||
file: 'entry.mjs', |
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.
Changes made to original code.
original code is
[ctx.entry]: {
isEntry: true, // no change
file: ctx.entry
}
// Build and watch | ||
const _doBuild = async () => { | ||
const start = Date.now() | ||
const { code, ids } = await bundleRequest(options, '/.nuxt/server.js') |
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.
Changes made to original code.
original code is
const { code, ids } = await bundleRequest(options, ctx.entry)
vite-node
dev server implementation
π Linked issue
β Type of change
π Description
I will port vite-node-server from Nuxt 3.
π Checklist