Node.js: added "shortCircuit" option for ES modules hook.
Starting from Node.js v18.6.0 return value from all hooks must have "shortCircuit: true" option specified. For more information see: https://github.com/nodejs/node/commit/10bcad5c6e
This commit is contained in:
@@ -67,6 +67,12 @@ compatibility with PHP 8.2.
|
||||
</para>
|
||||
</change>
|
||||
|
||||
<change type="feature">
|
||||
<para>
|
||||
compatibility with Node.js 19.0.
|
||||
</para>
|
||||
</change>
|
||||
|
||||
<change type="feature">
|
||||
<para>
|
||||
support rack v3 in ruby applications.
|
||||
|
||||
@@ -4,13 +4,15 @@ export async function resolve(specifier, context, defaultResolver) {
|
||||
case "websocket":
|
||||
return {
|
||||
url: new URL("./websocket.js", import.meta.url).href,
|
||||
format: "commonjs"
|
||||
format: "commonjs",
|
||||
shortCircuit: true,
|
||||
}
|
||||
|
||||
case "http":
|
||||
return {
|
||||
url: new URL("./http.js", import.meta.url).href,
|
||||
format: "commonjs"
|
||||
format: "commonjs",
|
||||
shortCircuit: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user