Revert "disable stripping license comments"

pull/290/head
Lennart C. L. Kats 2016-04-20 12:12:01 +02:00
rodzic 1845d1c7a1
commit bab9457384
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) if (!opts.transforms)
opts.transforms = []; opts.transforms = [];
opts.transforms.push(wrapUMD); opts.transforms.push(removeLicenceComments, wrapUMD);
if (opts.pathConfig) { if (opts.pathConfig) {
opts.paths = opts.paths || opts.pathConfig.paths; 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' + ' $build_deps$.module.define(name, [], function() { return $build_deps$.module.exports });\n'
+ ' }\n' + ' }\n'
+ '}\n' + '}\n'
+ 'define.amd = true;\n' + 'define.amd = true;'
+ module.source + '\n' + module.source
+ '});'; + '});';
} }

Wyświetl plik

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