-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rollup): provide es5 and minified umd bundles
Closes #685
- Loading branch information
Jason Bedard
authored and
Keen Yee Liau
committed
Apr 24, 2019
1 parent
f5314b4
commit d70cf62
Showing
6 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* @license A dummy license banner that goes at the top of the file. | ||
* This is version v1.2.3 | ||
*/ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('some_global_var')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'some_global_var'], factory) : | ||
(global = global || self, factory(global.bundle = {}, global.runtime_name_of_global_var)); | ||
}(this, function (exports, some_global_var) { | ||
'use strict'; | ||
var fum = 'Wonderland'; | ||
var hello = 'Hello'; | ||
var name = 'Alice'; | ||
console.log(hello + ", " + name + " in " + fum); | ||
// Test for sequences = false | ||
var A = /** @class */ (function () { | ||
function A() { | ||
} | ||
A.prototype.a = function () { | ||
return document.a; | ||
}; | ||
return A; | ||
}()); | ||
function inline_me() { | ||
return 'abc'; | ||
} | ||
console.error(new A().a(), inline_me(), some_global_var.thing); | ||
exports.A = A; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
//# sourceMappingURL=bundle.umd.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* @license A dummy license banner that goes at the top of the file. | ||
* This is version v1.2.3 | ||
*/ | ||
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("some_global_var")):"function"==typeof define&&define.amd?define(["exports","some_global_var"],o):o((e=e||self).bundle={},e.runtime_name_of_global_var)}(this,function(e,o){"use strict";console.log("Hello, Alice in Wonderland");var n=function(){function e(){}return e.prototype.a=function(){return document.a},e}();console.error((new n).a(),"abc",o.thing),e.A=n,Object.defineProperty(e,"__esModule",{value:!0})}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters