chore: fix typo in codegen (#92)

This commit is contained in:
zrh122 2019-10-05 22:29:50 +08:00 committed by Evan You
parent a84a2b252d
commit 12abcba2c5

View File

@ -180,7 +180,7 @@ export function generate(
if (mode === 'function') { if (mode === 'function') {
// Generate const declaration for helpers // Generate const declaration for helpers
// In prefix mode, we place the const declaration at top so it's done // In prefix mode, we place the const declaration at top so it's done
// only once; But if we not prefixing, we place the decalration inside the // only once; But if we not prefixing, we place the declaration inside the
// with block so it doesn't incur the `in` check cost for every helper access. // with block so it doesn't incur the `in` check cost for every helper access.
if (hasImports) { if (hasImports) {
if (prefixIdentifiers) { if (prefixIdentifiers) {