mirror of https://github.com/lukechilds/rollup.git
9 changed files with 92 additions and 1 deletions
@ -0,0 +1,4 @@ |
|||||
|
module.exports = { |
||||
|
description: 'does not treat property assignment as rebinding for sake of unbound default exports', |
||||
|
// solo: true
|
||||
|
}; |
@ -0,0 +1,15 @@ |
|||||
|
define(function () { 'use strict'; |
||||
|
|
||||
|
var Foo = function () { |
||||
|
this.isFoo = true; |
||||
|
}; |
||||
|
|
||||
|
Foo.prototype = { |
||||
|
answer: function () { |
||||
|
return 42; |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
var foo = new Foo(); |
||||
|
|
||||
|
}); |
@ -0,0 +1,13 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
var Foo = function () { |
||||
|
this.isFoo = true; |
||||
|
}; |
||||
|
|
||||
|
Foo.prototype = { |
||||
|
answer: function () { |
||||
|
return 42; |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
var foo = new Foo(); |
@ -0,0 +1,11 @@ |
|||||
|
var Foo = function () { |
||||
|
this.isFoo = true; |
||||
|
}; |
||||
|
|
||||
|
Foo.prototype = { |
||||
|
answer: function () { |
||||
|
return 42; |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
var foo = new Foo(); |
@ -0,0 +1,15 @@ |
|||||
|
(function () { 'use strict'; |
||||
|
|
||||
|
var Foo = function () { |
||||
|
this.isFoo = true; |
||||
|
}; |
||||
|
|
||||
|
Foo.prototype = { |
||||
|
answer: function () { |
||||
|
return 42; |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
var foo = new Foo(); |
||||
|
|
||||
|
})(); |
@ -0,0 +1,19 @@ |
|||||
|
(function (global, factory) { |
||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory() : |
||||
|
typeof define === 'function' && define.amd ? define(factory) : |
||||
|
factory(); |
||||
|
}(this, function () { 'use strict'; |
||||
|
|
||||
|
var Foo = function () { |
||||
|
this.isFoo = true; |
||||
|
}; |
||||
|
|
||||
|
Foo.prototype = { |
||||
|
answer: function () { |
||||
|
return 42; |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
var foo = new Foo(); |
||||
|
|
||||
|
})); |
@ -0,0 +1,11 @@ |
|||||
|
var Foo = function () { |
||||
|
this.isFoo = true; |
||||
|
}; |
||||
|
|
||||
|
export default Foo; |
||||
|
|
||||
|
Foo.prototype = { |
||||
|
answer: function () { |
||||
|
return 42; |
||||
|
} |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
import Foo from './foo'; |
||||
|
|
||||
|
var foo = new Foo(); |
Loading…
Reference in new issue