Expose Visitor in full browser build

Fixes #994
This commit is contained in:
kpdecker
2015-04-13 21:25:53 -05:00
parent dfd141cd35
commit a7160a8d27
2 changed files with 3 additions and 2 deletions
+3
View File
@@ -6,6 +6,7 @@ import AST from "./handlebars/compiler/ast";
import { parser as Parser, parse } from "./handlebars/compiler/base";
import { Compiler, compile, precompile } from "./handlebars/compiler/compiler";
import JavaScriptCompiler from "./handlebars/compiler/javascript-compiler";
import Visitor from "./handlebars/compiler/visitor";
var _create = Handlebars.create;
var create = function() {
@@ -30,6 +31,8 @@ var create = function() {
Handlebars = create();
Handlebars.create = create;
Handlebars.Visitor = Visitor;
/*jshint -W040 */
/* istanbul ignore next */
var root = typeof global !== 'undefined' ? global : window,
-2
View File
@@ -5,8 +5,6 @@
var handlebars = require('../dist/cjs/handlebars')["default"];
handlebars.Visitor = require('../dist/cjs/handlebars/compiler/visitor')["default"];
var printer = require('../dist/cjs/handlebars/compiler/printer');
handlebars.PrintVisitor = printer.PrintVisitor;
handlebars.print = printer.print;