Browse Source

Excluded moment.js language files by from the default vis.js bundle

v3_develop
jos 10 years ago
parent
commit
cbdbdc3ce6
8 changed files with 8284 additions and 15217 deletions
  1. +59
    -55
      dist/vis-light.js
  2. +1
    -1
      dist/vis-light.map
  3. +7
    -7
      dist/vis-light.min.js
  4. +8196
    -15138
      dist/vis.js
  5. +1
    -1
      dist/vis.map
  6. +12
    -15
      dist/vis.min.js
  7. +4
    -0
      gulpfile.js
  8. +4
    -0
      index.js

+ 59
- 55
dist/vis-light.js View File

@ -32,7 +32,7 @@
exports["vis"] = factory(require("moment"), require("hammerjs")); exports["vis"] = factory(require("moment"), require("hammerjs"));
else else
root["vis"] = factory(root["moment"], root["hammerjs"]); root["vis"] = factory(root["moment"], root["hammerjs"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_44__, __WEBPACK_EXTERNAL_MODULE_45__) {
})(this, function(__WEBPACK_EXTERNAL_MODULE_41__, __WEBPACK_EXTERNAL_MODULE_42__) {
return /******/ (function(modules) { // webpackBootstrap return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
@ -144,6 +144,10 @@ return /******/ (function(modules) { // webpackBootstrap
throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)'); throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
}; };
// bundled external libraries
exports.moment = __webpack_require__(39);
exports.hammer = __webpack_require__(40);
/***/ }, /***/ },
/* 1 */ /* 1 */
@ -153,7 +157,7 @@ return /******/ (function(modules) { // webpackBootstrap
// first check if moment.js is already loaded in the browser window, if so, // first check if moment.js is already loaded in the browser window, if so,
// use this instance. Else, load via commonjs. // use this instance. Else, load via commonjs.
var moment = __webpack_require__(41);
var moment = __webpack_require__(39);
/** /**
* Test whether given object is a number * Test whether given object is a number
@ -6021,7 +6025,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Emitter = __webpack_require__(46); var Emitter = __webpack_require__(46);
var Hammer = __webpack_require__(42);
var Hammer = __webpack_require__(40);
var util = __webpack_require__(1); var util = __webpack_require__(1);
var DataSet = __webpack_require__(3); var DataSet = __webpack_require__(3);
var DataView = __webpack_require__(4); var DataView = __webpack_require__(4);
@ -6936,7 +6940,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Emitter = __webpack_require__(46); var Emitter = __webpack_require__(46);
var Hammer = __webpack_require__(42);
var Hammer = __webpack_require__(40);
var util = __webpack_require__(1); var util = __webpack_require__(1);
var DataSet = __webpack_require__(3); var DataSet = __webpack_require__(3);
var DataView = __webpack_require__(4); var DataView = __webpack_require__(4);
@ -8052,8 +8056,8 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var util = __webpack_require__(1); var util = __webpack_require__(1);
var hammerUtil = __webpack_require__(39);
var moment = __webpack_require__(41);
var hammerUtil = __webpack_require__(43);
var moment = __webpack_require__(39);
var Component = __webpack_require__(18); var Component = __webpack_require__(18);
/** /**
@ -8705,7 +8709,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 17 */ /* 17 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var moment = __webpack_require__(41);
var moment = __webpack_require__(39);
/** /**
* @constructor TimeStep * @constructor TimeStep
@ -9379,7 +9383,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 20 */ /* 20 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Hammer = __webpack_require__(42);
var Hammer = __webpack_require__(40);
var util = __webpack_require__(1); var util = __webpack_require__(1);
var Component = __webpack_require__(18); var Component = __webpack_require__(18);
@ -10611,7 +10615,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 24 */ /* 24 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Hammer = __webpack_require__(42);
var Hammer = __webpack_require__(40);
var util = __webpack_require__(1); var util = __webpack_require__(1);
var DataSet = __webpack_require__(3); var DataSet = __webpack_require__(3);
var DataView = __webpack_require__(4); var DataView = __webpack_require__(4);
@ -13666,7 +13670,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 28 */ /* 28 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Hammer = __webpack_require__(42);
var Hammer = __webpack_require__(40);
/** /**
* @constructor Item * @constructor Item
@ -14267,7 +14271,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 31 */ /* 31 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Hammer = __webpack_require__(42);
var Hammer = __webpack_require__(40);
var Item = __webpack_require__(28); var Item = __webpack_require__(28);
/** /**
@ -14565,10 +14569,10 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Emitter = __webpack_require__(46); var Emitter = __webpack_require__(46);
var Hammer = __webpack_require__(42);
var Hammer = __webpack_require__(40);
var mousetrap = __webpack_require__(47); var mousetrap = __webpack_require__(47);
var util = __webpack_require__(1); var util = __webpack_require__(1);
var hammerUtil = __webpack_require__(39);
var hammerUtil = __webpack_require__(43);
var DataSet = __webpack_require__(3); var DataSet = __webpack_require__(3);
var DataView = __webpack_require__(4); var DataView = __webpack_require__(4);
var dotparser = __webpack_require__(38); var dotparser = __webpack_require__(38);
@ -14577,10 +14581,10 @@ return /******/ (function(modules) { // webpackBootstrap
var Node = __webpack_require__(36); var Node = __webpack_require__(36);
var Edge = __webpack_require__(33); var Edge = __webpack_require__(33);
var Popup = __webpack_require__(37); var Popup = __webpack_require__(37);
var MixinLoader = __webpack_require__(43);
var MixinLoader = __webpack_require__(45);
// Load custom shapes into CanvasRenderingContext2D // Load custom shapes into CanvasRenderingContext2D
__webpack_require__(40);
__webpack_require__(44);
/** /**
* @constructor Network * @constructor Network
@ -20249,7 +20253,44 @@ return /******/ (function(modules) { // webpackBootstrap
/* 39 */ /* 39 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var Hammer = __webpack_require__(42);
// first check if moment.js is already loaded in the browser window, if so,
// use this instance. Else, load via commonjs.
module.exports = (typeof window !== 'undefined') && window['moment'] || __webpack_require__(41);
/***/ },
/* 40 */
/***/ function(module, exports, __webpack_require__) {
// Only load hammer.js when in a browser environment
// (loading hammer.js in a node.js environment gives errors)
if (typeof window !== 'undefined') {
module.exports = window['Hammer'] || __webpack_require__(42);
}
else {
module.exports = function () {
throw Error('hammer.js is only available in a browser, not in node.js.');
}
}
/***/ },
/* 41 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __WEBPACK_EXTERNAL_MODULE_41__;
/***/ },
/* 42 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __WEBPACK_EXTERNAL_MODULE_42__;
/***/ },
/* 43 */
/***/ function(module, exports, __webpack_require__) {
var Hammer = __webpack_require__(40);
/** /**
* Fake a hammer.js gesture. Event can be a ScrollEvent or MouseMoveEvent * Fake a hammer.js gesture. Event can be a ScrollEvent or MouseMoveEvent
@ -20280,7 +20321,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 40 */
/* 44 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
/** /**
@ -20511,32 +20552,7 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }, /***/ },
/* 41 */
/***/ function(module, exports, __webpack_require__) {
// first check if moment.js is already loaded in the browser window, if so,
// use this instance. Else, load via commonjs.
module.exports = (typeof window !== 'undefined') && window['moment'] || __webpack_require__(44);
/***/ },
/* 42 */
/***/ function(module, exports, __webpack_require__) {
// Only load hammer.js when in a browser environment
// (loading hammer.js in a node.js environment gives errors)
if (typeof window !== 'undefined') {
module.exports = window['Hammer'] || __webpack_require__(45);
}
else {
module.exports = function () {
throw Error('hammer.js is only available in a browser, not in node.js.');
}
}
/***/ },
/* 43 */
/* 45 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {
var PhysicsMixin = __webpack_require__(54); var PhysicsMixin = __webpack_require__(54);
@ -20739,18 +20755,6 @@ return /******/ (function(modules) { // webpackBootstrap
}; };
/***/ },
/* 44 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __WEBPACK_EXTERNAL_MODULE_44__;
/***/ },
/* 45 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __WEBPACK_EXTERNAL_MODULE_45__;
/***/ }, /***/ },
/* 46 */ /* 46 */
/***/ function(module, exports, __webpack_require__) { /***/ function(module, exports, __webpack_require__) {

+ 1
- 1
dist/vis-light.map
File diff suppressed because it is too large
View File


+ 7
- 7
dist/vis-light.min.js
File diff suppressed because it is too large
View File


+ 8196
- 15138
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 12
- 15
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 4
- 0
gulpfile.js View File

@ -47,6 +47,10 @@ var webpackConfig = {
filename: VIS_JS, filename: VIS_JS,
sourcePrefix: ' ' sourcePrefix: ' '
}, },
// exclude requires of moment.js language files
module: {
wrappedContextRegExp: /$^/
},
plugins: [ bannerPlugin ], plugins: [ bannerPlugin ],
cache: true cache: true
}; };

+ 4
- 0
index.js View File

@ -62,3 +62,7 @@ exports.network = {
exports.Graph = function () { exports.Graph = function () {
throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)'); throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
}; };
// bundled external libraries
exports.moment = require('./lib/module/moment');
exports.hammer = require('./lib/module/hammer');

Loading…
Cancel
Save