diff --git a/FIX_GETORDER_BUG.patch b/FIX_GETORDER_BUG.patch new file mode 100644 index 0000000000..5a19da5af9 --- /dev/null +++ b/FIX_GETORDER_BUG.patch @@ -0,0 +1,13 @@ +diff --git a/dist/rolldown/shared/normalize-string-or-regex-E9GT23QI.mjs b/dist/rolldown/shared/normalize-string-or-regex-E9GT23QI.mjs +index 1234567..abcdefg 100644 +--- a/dist/rolldown/shared/normalize-string-or-regex-E9GT23QI.mjs ++++ b/dist/rolldown/shared/normalize-string-or-regex-E9GT23QI.mjs +@@ -25,7 +25,7 @@ function makeBuiltinPluginCallable(plugin) { + })); + } + }; +- const order = callablePlugin.getOrder(key); ++ const order = callablePlugin.getOrder ? callablePlugin.getOrder(key) : void 0; + if (order == void 0) wrappedPlugin[key] = wrappedHook; + else wrappedPlugin[key] = { + handler: wrappedHook,