mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
5 changed files with 33 additions and 1 deletions
@ -0,0 +1,4 @@ |
|||
module.exports = { |
|||
description: 'generates UMD export with correct moduleName', |
|||
command: 'rollup main.js --format umd --name myBundle' |
|||
} |
@ -0,0 +1,11 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
global.myBundle = factory(); |
|||
}(this, function () { 'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})); |
@ -0,0 +1 @@ |
|||
export default 42; |
Loading…
Reference in new issue