Skip to content

Commit b1f2e03

Browse files
committed
Fix bundle; webpack apparently doesn't assume libraryTarget anymore
1 parent 1c43ea3 commit b1f2e03

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

dist/bundle.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
/******/ (function(modules) { // webpackBootstrap
1+
(function webpackUniversalModuleDefinition(root, factory) {
2+
if(typeof exports === 'object' && typeof module === 'object')
3+
module.exports = factory(require("react"), require("react-dom"));
4+
else if(typeof define === 'function' && define.amd)
5+
define(["react", "react-dom"], factory);
6+
else {
7+
var a = typeof exports === 'object' ? factory(require("react"), require("react-dom")) : factory(root["React"], root["ReactDOM"]);
8+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9+
}
10+
})(this, function(__WEBPACK_EXTERNAL_MODULE_3__, __WEBPACK_EXTERNAL_MODULE_6__) {
11+
return /******/ (function(modules) { // webpackBootstrap
212
/******/ // The module cache
313
/******/ var installedModules = {};
414

@@ -212,7 +222,7 @@
212222
/* 3 */
213223
/***/ function(module, exports) {
214224

215-
module.exports = undefined;
225+
module.exports = __WEBPACK_EXTERNAL_MODULE_3__;
216226

217227
/***/ },
218228
/* 4 */
@@ -1824,7 +1834,7 @@
18241834
/* 6 */
18251835
/***/ function(module, exports) {
18261836

1827-
module.exports = undefined;
1837+
module.exports = __WEBPACK_EXTERNAL_MODULE_6__;
18281838

18291839
/***/ },
18301840
/* 7 */
@@ -2305,4 +2315,6 @@
23052315

23062316

23072317
/***/ }
2308-
/******/ ]);
2318+
/******/ ])
2319+
});
2320+
;

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
path: __dirname + "/dist",
88
filename: "bundle.js",
99
sourceMapFilename: "[file].map",
10+
libraryTarget: 'umd'
1011
},
1112
externals: {
1213
'react': {

0 commit comments

Comments
 (0)