Merge remote-tracking branch 'origin/master' into all-ab-testing

pull/290/head
Lennart Kats 2016-04-20 07:45:19 +00:00
commit c00505fa22
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -29,7 +29,7 @@ module.exports = function(mains, opts) {
if (!opts.transforms)
opts.transforms = [];
opts.transforms.push(removeLicenceComments, wrapUMD);
opts.transforms.push(wrapUMD);
if (opts.pathConfig) {
opts.paths = opts.paths || opts.pathConfig.paths;
@ -391,8 +391,8 @@ function wrapUMD(module) {
+ ' $build_deps$.module.define(name, [], function() { return $build_deps$.module.exports });\n'
+ ' }\n'
+ '}\n'
+ 'define.amd = true;'
+ module.source
+ 'define.amd = true;\n'
+ module.source + '\n'
+ '});';
}

Wyświetl plik

@ -57,7 +57,7 @@ describe("The Module", function(){
var code = result.code;
assert(code.indexOf("<a:style><![CDATA[]]></a:style>" >= 0), "should have at least one stripped style");
assert(!code.match(/<a:style><!\[CDATA\[[^\]]/), "should only have stripped styles");
//assert(!code.match(/<a:style><!\[CDATA\[[^\]]/), "should only have stripped styles");
done();
});