mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
8 changed files with 58 additions and 2 deletions
@ -0,0 +1,6 @@ |
|||
module.exports = { |
|||
description: 'correctly exports a default import, even in ES mode (#513)', |
|||
options: { |
|||
moduleName: 'myBundle' |
|||
} |
|||
}; |
@ -0,0 +1,9 @@ |
|||
define(['exports', 'x'], function (exports, x) { 'use strict'; |
|||
|
|||
x = 'default' in x ? x['default'] : x; |
|||
|
|||
|
|||
|
|||
exports.x = x; |
|||
|
|||
}); |
@ -0,0 +1,9 @@ |
|||
'use strict'; |
|||
|
|||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } |
|||
|
|||
var x = _interopDefault(require('x')); |
|||
|
|||
|
|||
|
|||
exports.x = x; |
@ -0,0 +1,5 @@ |
|||
import x from 'x'; |
|||
|
|||
|
|||
|
|||
export { x }; |
@ -0,0 +1,10 @@ |
|||
(function (exports,x) { |
|||
'use strict'; |
|||
|
|||
x = 'default' in x ? x['default'] : x; |
|||
|
|||
|
|||
|
|||
exports.x = x; |
|||
|
|||
}((this.myBundle = this.myBundle || {}),x)); |
@ -0,0 +1,13 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('x')) : |
|||
typeof define === 'function' && define.amd ? define(['exports', 'x'], factory) : |
|||
(factory((global.myBundle = global.myBundle || {}),global.x)); |
|||
}(this, function (exports,x) { 'use strict'; |
|||
|
|||
x = 'default' in x ? x['default'] : x; |
|||
|
|||
|
|||
|
|||
exports.x = x; |
|||
|
|||
})); |
@ -0,0 +1,3 @@ |
|||
import x from 'x'; |
|||
|
|||
export { x }; |
Loading…
Reference in new issue