mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
8 changed files with 67 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
module.exports = { |
||||
|
description: 'preserves comments between imports and first statement', |
||||
|
options: { |
||||
|
moduleName: 'myBundle' |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
// https://github.com/esperantojs/esperanto/issues/187
|
@ -0,0 +1,9 @@ |
|||||
|
define(['exports'], function (exports) { 'use strict'; |
||||
|
|
||||
|
/** A comment for a number */ |
||||
|
var number = 5; |
||||
|
|
||||
|
/** A comment for obj */ |
||||
|
exports.obj = { number }; |
||||
|
|
||||
|
}); |
@ -0,0 +1,7 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
/** A comment for a number */ |
||||
|
var number = 5; |
||||
|
|
||||
|
/** A comment for obj */ |
||||
|
exports.obj = { number }; |
@ -0,0 +1,7 @@ |
|||||
|
/** A comment for a number */ |
||||
|
var number = 5; |
||||
|
|
||||
|
/** A comment for obj */ |
||||
|
var obj = { number }; |
||||
|
|
||||
|
export { obj }; |
@ -0,0 +1,9 @@ |
|||||
|
(function (exports) { 'use strict'; |
||||
|
|
||||
|
/** A comment for a number */ |
||||
|
var number = 5; |
||||
|
|
||||
|
/** A comment for obj */ |
||||
|
exports.obj = { number }; |
||||
|
|
||||
|
})((this.myBundle = {})); |
@ -0,0 +1,13 @@ |
|||||
|
(function (global, factory) { |
||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
||||
|
typeof define === 'function' && define.amd ? define(['exports'], factory) : |
||||
|
factory((global.myBundle = {})); |
||||
|
}(this, function (exports) { 'use strict'; |
||||
|
|
||||
|
/** A comment for a number */ |
||||
|
var number = 5; |
||||
|
|
||||
|
/** A comment for obj */ |
||||
|
exports.obj = { number }; |
||||
|
|
||||
|
})); |
@ -0,0 +1,8 @@ |
|||||
|
import { number } from './number.js'; |
||||
|
|
||||
|
/** A comment for obj */ |
||||
|
var obj = { number }; |
||||
|
|
||||
|
export { |
||||
|
obj |
||||
|
}; |
@ -0,0 +1,6 @@ |
|||||
|
/** A comment for a number */ |
||||
|
var number = 5; |
||||
|
|
||||
|
export { |
||||
|
number |
||||
|
}; |
Loading…
Reference in new issue