mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-29 12:00:32 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
22
patches/@vue+vue3-jest+29.2.3.patch
Normal file
22
patches/@vue+vue3-jest+29.2.3.patch
Normal file
@ -0,0 +1,22 @@
|
||||
diff --git a/node_modules/@vue/vue3-jest/lib/process.js b/node_modules/@vue/vue3-jest/lib/process.js
|
||||
index a8d1c5c..a6b2036 100644
|
||||
--- a/node_modules/@vue/vue3-jest/lib/process.js
|
||||
+++ b/node_modules/@vue/vue3-jest/lib/process.js
|
||||
@@ -108,12 +108,17 @@ function processTemplate(descriptor, filename, config) {
|
||||
(descriptor.script && descriptor.script.lang)
|
||||
const isTS = /^typescript$|tsx?$/.test(lang)
|
||||
|
||||
+ const compiler = typeof vueJestConfig.compiler === 'string'
|
||||
+ ? require(vueJestConfig.compiler)
|
||||
+ : vueJestConfig.compiler
|
||||
+
|
||||
const result = compileTemplate({
|
||||
id: filename,
|
||||
source: template.content,
|
||||
filename,
|
||||
preprocessLang: template.lang,
|
||||
preprocessOptions: vueJestConfig[template.lang],
|
||||
+ compiler,
|
||||
compilerOptions: {
|
||||
bindingMetadata: bindings,
|
||||
mode: 'module',
|
Reference in New Issue
Block a user