Skip to content

Commit

Permalink
"ReferenceError: define is not defined" fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kusmierz committed Jun 30, 2014
1 parent a025d91 commit a62a4b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hbs-builder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
define(function () {
var Handlebars,
buildMap = {},
define(["handlebars-compiler"], function (Handlebars) {
var buildMap = {},
templateExtension = ".hbs";

var fs = nodeRequire("fs");
Expand Down

1 comment on commit a62a4b7

@JSteunou
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could remove the config.hbs.compilerPath option or mark it as deprecated.
This way one should use requirejs map to provide handlebars-compiler as handlebars or real two handlebars paths.

Please sign in to comment.