Skip to content

Commit

Permalink
Resolve #1263
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Nov 8, 2017
1 parent 00a5b9c commit bc70d8d
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/form/samples/tree-shake-curried-functions/_config.js
@@ -0,0 +1,5 @@
var path = require('path');

module.exports = {
description: 'Remove side-effect-free curried functions (#1263)'
};
@@ -0,0 +1,5 @@
define(function () { 'use strict';



});
@@ -0,0 +1,2 @@
'use strict';

@@ -0,0 +1 @@

@@ -0,0 +1,6 @@
(function () {
'use strict';



}());
@@ -0,0 +1,9 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { 'use strict';



})));
12 changes: 12 additions & 0 deletions test/form/samples/tree-shake-curried-functions/main.js
@@ -0,0 +1,12 @@
function foo(a) {
return function(b) {
return a+b;
}
}

function bar(a, b) {
return a+b;
}

foo(1)(2);
bar(1,2);

0 comments on commit bc70d8d

Please sign in to comment.