chore(angular1_router): tighten up the build regex replacement
This commit is contained in:
parent
72e24663ad
commit
980491b08f
|
@ -40,8 +40,10 @@ function main(modulesDirectory) {
|
||||||
return prev + transform(fs.readFileSync(dir + file, 'utf8'));
|
return prev + transform(fs.readFileSync(dir + file, 'utf8'));
|
||||||
}, '');
|
}, '');
|
||||||
|
|
||||||
var out = moduleTemplate.replace('//{{FACADES}}', facades)
|
// we have to use a function callback for replace to prevent it from interpreting `$`
|
||||||
.replace('//{{SHARED_CODE}}', sharedCode);
|
// as a replacement command character
|
||||||
|
var out = moduleTemplate.replace('//{{FACADES}}', function() { return facades; })
|
||||||
|
.replace('//{{SHARED_CODE}}', function() { return sharedCode; });
|
||||||
return PRELUDE + transform(directives) + out + POSTLUDE;
|
return PRELUDE + transform(directives) + out + POSTLUDE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue