Make all add-ons CommonJS importable

- Fix #52
- Rename `npm/nodejs project` documentation to `CommonJS environment`
This commit is contained in:
Paris
2016-05-03 12:05:13 +03:00
parent 537fbad705
commit bd2158613d
5 changed files with 27 additions and 7 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
(function (xterm) {
if (typeof exports === 'object' && typeof module === 'object') {
/*
* npm/nodejs project
* CommonJS environment
*/
module.exports = xterm.call(this);
} else if (typeof define == 'function') {