Provide our own version of AMD text plugin
#fix 374
This commit is contained in:
parent
9e84157aa8
commit
5e41503243
7 changed files with 135 additions and 303 deletions
|
|
@ -108,10 +108,7 @@ var project = copy.createCommonJsProject(aceProject);
|
|||
|
||||
|
||||
function filterTextPlugin(text) {
|
||||
return text.replace(/(['"])text\!/g, "$1text/");
|
||||
/*return text
|
||||
.replace(/define\(\s*['"]text\!\)/g, "text/")
|
||||
.replace(/require\(\s*['"]text\!\)/g, "text/")*/
|
||||
return text.replace(/(['"])ace\/requirejs\/text\!/g, "$1text/");
|
||||
}
|
||||
|
||||
var ace = copy.createDataObject();
|
||||
|
|
@ -363,11 +360,12 @@ function demo() {
|
|||
|
||||
copy({
|
||||
source: demo,
|
||||
filter: copy.filter.uglifyjs,
|
||||
filter: [ copy.filter.uglifyjs, filterTextPlugin ],
|
||||
dest: 'build/demo/kitchen-sink.js'
|
||||
});
|
||||
copy({
|
||||
source: demo,
|
||||
filter: [ filterTextPlugin ],
|
||||
dest: 'build/demo/kitchen-sink-uncompressed.js'
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue