mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
committed by
GitHub
9 changed files with 141 additions and 1 deletions
@ -0,0 +1,7 @@ |
|||
module.exports = { |
|||
description: 'Does not output getters when in legacy', |
|||
options: { |
|||
legacy: true, |
|||
moduleName: 'foo' |
|||
} |
|||
}; |
@ -0,0 +1,25 @@ |
|||
define(['exports'], function (exports) { 'use strict'; |
|||
|
|||
var browserSpecificThing; |
|||
|
|||
if ('ActiveXObject' in window) { |
|||
browserSpecificThing = "InternetExplorerThing"; |
|||
} else { |
|||
browserSpecificThing = "DecentBrowserThing"; |
|||
} |
|||
|
|||
function foo() {} |
|||
|
|||
|
|||
var browserStuff = (Object.freeze || Object)({ |
|||
browserSpecificThing: browserSpecificThing, |
|||
foo: foo |
|||
}); |
|||
|
|||
console.log(browserSpecificThing); |
|||
|
|||
exports.B = browserStuff; |
|||
|
|||
Object.defineProperty(exports, '__esModule', { value: true }); |
|||
|
|||
}); |
@ -0,0 +1,23 @@ |
|||
'use strict'; |
|||
|
|||
Object.defineProperty(exports, '__esModule', { value: true }); |
|||
|
|||
var browserSpecificThing; |
|||
|
|||
if ('ActiveXObject' in window) { |
|||
browserSpecificThing = "InternetExplorerThing"; |
|||
} else { |
|||
browserSpecificThing = "DecentBrowserThing"; |
|||
} |
|||
|
|||
function foo() {} |
|||
|
|||
|
|||
var browserStuff = (Object.freeze || Object)({ |
|||
browserSpecificThing: browserSpecificThing, |
|||
foo: foo |
|||
}); |
|||
|
|||
console.log(browserSpecificThing); |
|||
|
|||
exports.B = browserStuff; |
@ -0,0 +1,19 @@ |
|||
var browserSpecificThing; |
|||
|
|||
if ('ActiveXObject' in window) { |
|||
browserSpecificThing = "InternetExplorerThing"; |
|||
} else { |
|||
browserSpecificThing = "DecentBrowserThing"; |
|||
} |
|||
|
|||
function foo() {} |
|||
|
|||
|
|||
var browserStuff = (Object.freeze || Object)({ |
|||
browserSpecificThing: browserSpecificThing, |
|||
foo: foo |
|||
}); |
|||
|
|||
console.log(browserSpecificThing); |
|||
|
|||
export { browserStuff as B }; |
@ -0,0 +1,24 @@ |
|||
(function (exports) { |
|||
'use strict'; |
|||
|
|||
var browserSpecificThing; |
|||
|
|||
if ('ActiveXObject' in window) { |
|||
browserSpecificThing = "InternetExplorerThing"; |
|||
} else { |
|||
browserSpecificThing = "DecentBrowserThing"; |
|||
} |
|||
|
|||
function foo() {} |
|||
|
|||
|
|||
var browserStuff = (Object.freeze || Object)({ |
|||
browserSpecificThing: browserSpecificThing, |
|||
foo: foo |
|||
}); |
|||
|
|||
console.log(browserSpecificThing); |
|||
|
|||
exports.B = browserStuff; |
|||
|
|||
}((this.foo = this.foo || {}))); |
@ -0,0 +1,29 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
|||
typeof define === 'function' && define.amd ? define(['exports'], factory) : |
|||
(factory((global.foo = global.foo || {}))); |
|||
}(this, (function (exports) { 'use strict'; |
|||
|
|||
var browserSpecificThing; |
|||
|
|||
if ('ActiveXObject' in window) { |
|||
browserSpecificThing = "InternetExplorerThing"; |
|||
} else { |
|||
browserSpecificThing = "DecentBrowserThing"; |
|||
} |
|||
|
|||
function foo() {} |
|||
|
|||
|
|||
var browserStuff = (Object.freeze || Object)({ |
|||
browserSpecificThing: browserSpecificThing, |
|||
foo: foo |
|||
}); |
|||
|
|||
console.log(browserSpecificThing); |
|||
|
|||
exports.B = browserStuff; |
|||
|
|||
Object.defineProperty(exports, '__esModule', { value: true }); |
|||
|
|||
}))); |
@ -0,0 +1,9 @@ |
|||
export var browserSpecificThing; |
|||
|
|||
if ('ActiveXObject' in window) { |
|||
browserSpecificThing = "InternetExplorerThing"; |
|||
} else { |
|||
browserSpecificThing = "DecentBrowserThing"; |
|||
} |
|||
|
|||
export function foo() {} |
@ -0,0 +1,4 @@ |
|||
import * as B from './browserStuff'; |
|||
export {B}; |
|||
|
|||
console.log(B.browserSpecificThing); |
Loading…
Reference in new issue