Comparing version
'use strict'; | ||
if (global && global.babyTolkCompilerModulePath) { | ||
require('app-module-path').addPath(global.babyTolkCompilerModulePath); | ||
} | ||
var Path = require('path'); | ||
@@ -42,3 +46,3 @@ var when = require('when'); | ||
try { | ||
return accord.load(engine, global.babyTolkCompilerModulePath); | ||
return accord.load(engine, global && global.babyTolkCompilerModulePath || null); | ||
} catch (e) { | ||
@@ -45,0 +49,0 @@ if (e.code !== 'MODULE_NOT_FOUND' && e.message.indexOf('Cannot find module') === -1) { |
{ | ||
"name": "baby-tolk", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"description": "A file reader that promises to translate non-web assets to web assets given the available transpilers, sourcemaps and all", | ||
@@ -42,2 +42,3 @@ "main": "lib/baby-tolk.js", | ||
"accord": "^0.26.0", | ||
"app-module-path": "1.1.0", | ||
"clean-css": "^3.4.18", | ||
@@ -44,0 +45,0 @@ "html-minifier": "^2.1.3", |
13406
1.34%236
1.29%6
20%+ Added
+ Added