kopia lustrzana https://github.com/c9/core
disable stripping license comments
fixes an issue with packaging dist/outplan.jspull/290/head
rodzic
5b95c84550
commit
1cc74a8049
|
@ -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'
|
||||
+ '});';
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue