Move to TypeScript build

This commit is contained in:
Daniel Imms
2016-10-01 00:29:33 -07:00
parent 8bf8147028
commit 441009d359
16 changed files with 47 additions and 62 deletions
+1 -1
View File
@@ -683,7 +683,7 @@ Terminal.prototype.open = function(parent) {
Terminal.loadAddon = function(addon, callback) {
if (typeof exports === 'object' && typeof module === 'object') {
// CommonJS
return require(__dirname + '/../addons/' + addon);
return require('../addons/' + addon);
} else if (typeof define == 'function') {
// RequireJS
return require(['../addons/' + addon + '/' + addon], callback);