Bringing synaptic.min.js and webpack.config that is outputting 100% identical .js and .min.js files - just a dirty fix for CDNJS
that is related to https://github.com/cazala/synaptic/issues/137, we're using fn.toString() and bunch of regex-es to create a worker for now (I know, it's bad, still we already have a fix, but it is breaking some of our actually-interal, but overly-exposed APIs, so it goes to v2), and we need to either have one version minified by us or it will be minified by CDNs.
Esse commit está contido em:
externo
+24
-31
@@ -91,21 +91,14 @@
|
||||
/************************************************************************/
|
||||
/******/ ([
|
||||
/* 0 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__(1);
|
||||
|
||||
|
||||
/***/ },
|
||||
/* 1 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var Synaptic = {
|
||||
Neuron: __webpack_require__(2),
|
||||
Layer: __webpack_require__(4),
|
||||
Network: __webpack_require__(5),
|
||||
Trainer: __webpack_require__(6),
|
||||
Architect: __webpack_require__(7)
|
||||
Neuron: __webpack_require__(1),
|
||||
Layer: __webpack_require__(3),
|
||||
Network: __webpack_require__(4),
|
||||
Trainer: __webpack_require__(5),
|
||||
Architect: __webpack_require__(6)
|
||||
};
|
||||
|
||||
// CommonJS & AMD
|
||||
@@ -136,7 +129,7 @@
|
||||
|
||||
|
||||
/***/ },
|
||||
/* 2 */
|
||||
/* 1 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(module) {// export
|
||||
@@ -936,10 +929,10 @@
|
||||
}
|
||||
})();
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module)))
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
|
||||
|
||||
/***/ },
|
||||
/* 3 */
|
||||
/* 2 */
|
||||
/***/ function(module, exports) {
|
||||
|
||||
module.exports = function(module) {
|
||||
@@ -955,15 +948,15 @@
|
||||
|
||||
|
||||
/***/ },
|
||||
/* 4 */
|
||||
/* 3 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(module) {// export
|
||||
if (module) module.exports = Layer;
|
||||
|
||||
// import
|
||||
var Neuron = __webpack_require__(2)
|
||||
, Network = __webpack_require__(5)
|
||||
var Neuron = __webpack_require__(1)
|
||||
, Network = __webpack_require__(4)
|
||||
|
||||
/*******************************************************************************************
|
||||
LAYER
|
||||
@@ -1235,19 +1228,19 @@
|
||||
}
|
||||
})();
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module)))
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
|
||||
|
||||
/***/ },
|
||||
/* 5 */
|
||||
/* 4 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(module) {// export
|
||||
if (module) module.exports = Network;
|
||||
|
||||
// import
|
||||
var Neuron = __webpack_require__(2)
|
||||
, Layer = __webpack_require__(4)
|
||||
, Trainer = __webpack_require__(6)
|
||||
var Neuron = __webpack_require__(1)
|
||||
, Layer = __webpack_require__(3)
|
||||
, Trainer = __webpack_require__(5)
|
||||
|
||||
/*******************************************************************************************
|
||||
NETWORK
|
||||
@@ -1887,10 +1880,10 @@
|
||||
return new Network(layers);
|
||||
};
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module)))
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
|
||||
|
||||
/***/ },
|
||||
/* 6 */
|
||||
/* 5 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(module) {// export
|
||||
@@ -2570,16 +2563,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module)))
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
|
||||
|
||||
/***/ },
|
||||
/* 7 */
|
||||
/* 6 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
/* WEBPACK VAR INJECTION */(function(module) {// import
|
||||
var Layer = __webpack_require__(4)
|
||||
, Network = __webpack_require__(5)
|
||||
, Trainer = __webpack_require__(6)
|
||||
var Layer = __webpack_require__(3)
|
||||
, Network = __webpack_require__(4)
|
||||
, Trainer = __webpack_require__(5)
|
||||
|
||||
/*******************************************************************************************
|
||||
ARCHITECT
|
||||
@@ -2849,7 +2842,7 @@
|
||||
|
||||
// export
|
||||
if (module) module.exports = Architect;
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3)(module)))
|
||||
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(2)(module)))
|
||||
|
||||
/***/ }
|
||||
/******/ ]);
|
||||
externo
+2848
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+5
-4
@@ -2,12 +2,13 @@ var webpack = require('webpack')
|
||||
var license = require('./prebuild.js')
|
||||
module.exports = {
|
||||
context: __dirname,
|
||||
entry: [
|
||||
'./src/synaptic.js'
|
||||
],
|
||||
entry: {
|
||||
synaptic: './src/synaptic.js',
|
||||
'synaptic.min': './src/synaptic.js'
|
||||
},
|
||||
output: {
|
||||
path: 'dist',
|
||||
filename: 'synaptic.js',
|
||||
filename: '[name].js',
|
||||
},
|
||||
plugins: [
|
||||
new webpack.NoErrorsPlugin(),
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário