diff --git a/src/compiler/codegen/directives/index.js b/src/compiler/codegen/directives/index.js index 90630a63c..293a63a3e 100644 --- a/src/compiler/codegen/directives/index.js +++ b/src/compiler/codegen/directives/index.js @@ -3,6 +3,7 @@ import { show } from './show' import { html } from './html' import { ref } from './ref' import { el } from './el' +export { genHandlers } from './on' export const directives = { model, diff --git a/src/compiler/codegen/events.js b/src/compiler/codegen/directives/on.js similarity index 100% rename from src/compiler/codegen/events.js rename to src/compiler/codegen/directives/on.js diff --git a/src/compiler/codegen/index.js b/src/compiler/codegen/index.js index 91496a71b..1113875c4 100644 --- a/src/compiler/codegen/index.js +++ b/src/compiler/codegen/index.js @@ -1,5 +1,4 @@ -import { genHandlers } from './events' -import { genDirectives } from './directives/index' +import { genDirectives, genHandlers } from './directives/index' import { isReservedTag } from '../../runtime/util/dom' export function generate (ast) {