disable stripping license comments

fixes an issue with packaging dist/outplan.js
pull/290/head
Fabian Jakobs 2016-04-19 09:18:52 +00:00
rodzic 5b95c84550
commit 1cc74a8049
1 zmienionych plików z 3 dodań i 3 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'
+ '});';
}