refactor: rename optimizeBindings -> optimizeImports
This commit is contained in:
@@ -171,7 +171,7 @@ export function render(_ctx, _cache) {
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`compiler: codegen module mode preamble w/ optimizeBindings: true 1`] = `
|
||||
exports[`compiler: codegen module mode preamble w/ optimizeImports: true 1`] = `
|
||||
"import { createVNode, resolveDirective } from \\"vue\\"
|
||||
|
||||
// Binding optimization for webpack code-split
|
||||
|
||||
@@ -68,11 +68,11 @@ describe('compiler: codegen', () => {
|
||||
expect(code).toMatchSnapshot()
|
||||
})
|
||||
|
||||
test('module mode preamble w/ optimizeBindings: true', () => {
|
||||
test('module mode preamble w/ optimizeImports: true', () => {
|
||||
const root = createRoot({
|
||||
helpers: [CREATE_VNODE, RESOLVE_DIRECTIVE]
|
||||
})
|
||||
const { code } = generate(root, { mode: 'module', optimizeBindings: true })
|
||||
const { code } = generate(root, { mode: 'module', optimizeImports: true })
|
||||
expect(code).toMatch(
|
||||
`import { ${helperNameMap[CREATE_VNODE]}, ${
|
||||
helperNameMap[RESOLVE_DIRECTIVE]
|
||||
|
||||
Reference in New Issue
Block a user