Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Ryze0323 Fork Version

In the case of version 12.0.4, a speed issue occurred because all packages had to be read and processed each time when developing in a node environment. All folders except the node_modules folder have been changed to reflect user changes.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to change the readme

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I restored the readme file.

# Serverless Offline

<p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ const { pathToFileURL } = require('node:url')
throw new MalformedStreamingHandler('Only response streaming is supported.')
}
module.exports.load = async function (appRoot, fullHandlerString) {
Object.keys(require.cache)
.filter((cache) => !cache.includes('node_modules'))
.forEach((item) => {
delete require.cache[item]
})
_throwIfInvalidHandler(fullHandlerString)
const [moduleRoot, moduleAndHandler] =
_moduleRootAndHandler(fullHandlerString)
Expand Down