Files
gitlab-foss/patches/@vue+compiler-sfc+3.5.17.patch
2025-06-24 15:11:59 +00:00

30 lines
1.9 KiB
Diff

diff --git a/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js b/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js
index 652af73..a715166 100644
--- a/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js
+++ b/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js
@@ -1817,7 +1817,8 @@ function parse$1(source, options = {}) {
if (!templateBlock.attrs.src) {
templateBlock.ast = compilerCore.createRoot(node.children, source);
}
- if (templateBlock.attrs.functional) {
+ // disabled by patch-package in gitlab as temporary migration
+ if (false && templateBlock.attrs.functional) {
const err = new SyntaxError(
`<template functional> is no longer supported in Vue 3, since functional components no longer have significant performance difference from stateful ones. Just use a normal <template> instead.`
);
diff --git a/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js b/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js
index d3bb28f..80c9c7d 100644
--- a/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js
+++ b/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js
@@ -27061,7 +27061,9 @@ function parse$2(source, options = {}) {
if (!templateBlock.attrs.src) {
templateBlock.ast = createRoot(node.children, source);
}
- if (templateBlock.attrs.functional) {
+ // disabled by patch-package in gitlab as temporary migration
+ // See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/114730
+ if (false && templateBlock.attrs.functional) {
const err = new SyntaxError(
`<template functional> is no longer supported in Vue 3, since functional components no longer have significant performance difference from stateful ones. Just use a normal <template> instead.`
);