|
@@ -445,6 +445,7 @@ AmberC.prototype.create_compiler = function(compilerFilesArray) {
|
|
Array.prototype.slice.call(arguments).forEach(function(data) {
|
|
Array.prototype.slice.call(arguments).forEach(function(data) {
|
|
|
|
|
|
builder.add(data[1]);
|
|
builder.add(data[1]);
|
|
|
|
+
|
|
var match = ('' + data[1]).match(/^define\("([^"]*)"/);
|
|
var match = ('' + data[1]).match(/^define\("([^"]*)"/);
|
|
if (match) {
|
|
if (match) {
|
|
builder.addId(match[1]);
|
|
builder.addId(match[1]);
|
|
@@ -625,6 +626,7 @@ AmberC.prototype.compose_js_files = function() {
|
|
if(fs.existsSync(file)) {
|
|
if(fs.existsSync(file)) {
|
|
console.log('Adding : ' + file);
|
|
console.log('Adding : ' + file);
|
|
var buffer = fs.readFileSync(file);
|
|
var buffer = fs.readFileSync(file);
|
|
|
|
+
|
|
var match = buffer.toString().match(/^define\("([^"]*)"/);
|
|
var match = buffer.toString().match(/^define\("([^"]*)"/);
|
|
if (match ) {
|
|
if (match ) {
|
|
builder.addId(match[1]);
|
|
builder.addId(match[1]);
|