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)
|
if (!opts.transforms)
|
||||||
opts.transforms = [];
|
opts.transforms = [];
|
||||||
|
|
||||||
opts.transforms.push(removeLicenceComments, wrapUMD);
|
opts.transforms.push(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;'
|
+ 'define.amd = true;\n'
|
||||||
+ module.source
|
+ module.source + '\n'
|
||||||
+ '});';
|
+ '});';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue