feat(compiler-core): more hoisting optimizations (#276)
This commit is contained in:
@@ -79,6 +79,7 @@ describe('isEmptyExpression', () => {
|
||||
content: '',
|
||||
type: NodeTypes.SIMPLE_EXPRESSION,
|
||||
isStatic: true,
|
||||
isConstant: true,
|
||||
loc: null as any
|
||||
})
|
||||
).toBe(true)
|
||||
@@ -90,6 +91,7 @@ describe('isEmptyExpression', () => {
|
||||
content: ' \t ',
|
||||
type: NodeTypes.SIMPLE_EXPRESSION,
|
||||
isStatic: true,
|
||||
isConstant: true,
|
||||
loc: null as any
|
||||
})
|
||||
).toBe(true)
|
||||
@@ -101,6 +103,7 @@ describe('isEmptyExpression', () => {
|
||||
content: 'foo',
|
||||
type: NodeTypes.SIMPLE_EXPRESSION,
|
||||
isStatic: true,
|
||||
isConstant: true,
|
||||
loc: null as any
|
||||
})
|
||||
).toBe(false)
|
||||
|
||||
Reference in New Issue
Block a user