Welcome to mirror list, hosted at ThFree Co, Russian Federation.

@vue+vue3-jest+29.2.3.patch « patches - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b0ced984000d858c9b23ca16efaaa5ebd8cc833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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',