Skip to content

Commit 7fedff7

Browse files
authored
fix: remove compilerOptions from config (#1408)
This option was not used, and not exposed in the typings. This was misleading as developers can imagine that setting `compilerOptions` in the config is the proper way to configure Vue. This should be done either by: - setting the options via https://github.com/vuejs/vue-jest#global-jest-options for Jest and vue-jest - setting the options in Vite directly for vitest
1 parent 91b4603 commit 7fedff7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ function mergeAppConfig(
2626
globalProperties: {
2727
...configGlobalConfig?.globalProperties,
2828
...mountGlobalConfig?.globalProperties
29-
},
30-
compilerOptions: {
31-
...configGlobalConfig?.compilerOptions,
32-
...mountGlobalConfig?.compilerOptions
3329
}
3430
}
3531
}

tests/features/compat.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ import { mount } from '../../src'
33

44
jest.mock('vue', () => mockVue)
55

6-
const { configureCompat, extend, defineComponent, h, config } = mockVue as any
6+
const { configureCompat, extend, defineComponent, h } = mockVue as any
77

88
describe('@vue/compat build', () => {
9-
beforeAll(() => {
10-
config.compilerOptions.whitespace = 'condense'
11-
})
12-
139
describe.each(['suppress-warning', false])(
1410
'when RENDER_FUNCTION compat is %p',
1511
(RENDER_FUNCTION) => {

0 commit comments

Comments
 (0)