-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ module.exports = | |
/******/ __webpack_require__.p = ""; | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 19); | ||
/******/ return __webpack_require__(__webpack_require__.s = 18); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
|
@@ -83,9 +83,9 @@ module.exports = require("detect-node"); | |
|
||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
|
||
var Compiler = __webpack_require__(15); | ||
var Compiler = __webpack_require__(14); | ||
var defaults = __webpack_require__(2); | ||
var TemplateError = __webpack_require__(17); | ||
var TemplateError = __webpack_require__(16); | ||
|
||
var debugRender = function debugRender(error, options) { | ||
options.onerror(error, options); | ||
|
@@ -224,16 +224,16 @@ module.exports = compile; | |
|
||
|
||
var detectNode = __webpack_require__(0); | ||
var onerror = __webpack_require__(11); | ||
var caches = __webpack_require__(5); | ||
var escape = __webpack_require__(7); | ||
var loader = __webpack_require__(10); | ||
var include = __webpack_require__(9); | ||
var each = __webpack_require__(6); | ||
var artRule = __webpack_require__(13); | ||
var nativeRule = __webpack_require__(14); | ||
var htmlMinifier = __webpack_require__(8); | ||
var resolveFilename = __webpack_require__(12); | ||
var onerror = __webpack_require__(10); | ||
var caches = __webpack_require__(4); | ||
var escape = __webpack_require__(6); | ||
var loader = __webpack_require__(9); | ||
var include = __webpack_require__(8); | ||
var each = __webpack_require__(5); | ||
var artRule = __webpack_require__(12); | ||
var nativeRule = __webpack_require__(13); | ||
var htmlMinifier = __webpack_require__(7); | ||
var resolveFilename = __webpack_require__(11); | ||
|
||
/** 模板编译器默认配置 */ | ||
var defaults = { | ||
|
@@ -315,12 +315,6 @@ module.exports = defaults; | |
|
||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = require("is-keyword-js"); | ||
|
||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -342,7 +336,7 @@ var render = function render(source, data, options) { | |
module.exports = render; | ||
|
||
/***/ }), | ||
/* 5 */ | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -367,7 +361,7 @@ var caches = { | |
module.exports = caches; | ||
|
||
/***/ }), | ||
/* 6 */ | ||
/* 5 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -393,7 +387,7 @@ var each = function each(data, callback) { | |
module.exports = each; | ||
|
||
/***/ }), | ||
/* 7 */ | ||
/* 6 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -438,7 +432,7 @@ var escape = function escape(content) { | |
module.exports = escape; | ||
|
||
/***/ }), | ||
/* 8 */ | ||
/* 7 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -455,7 +449,7 @@ var detectNode = __webpack_require__(0); | |
var htmlMinifier = function htmlMinifier(source, options) { | ||
if (detectNode) { | ||
|
||
var _htmlMinifier = __webpack_require__(21).minify; | ||
var _htmlMinifier = __webpack_require__(20).minify; | ||
var ignoreCustomFragments = options.rules.map(function (rule) { | ||
return rule.test; | ||
}); | ||
|
@@ -475,7 +469,7 @@ var htmlMinifier = function htmlMinifier(source, options) { | |
module.exports = htmlMinifier; | ||
|
||
/***/ }), | ||
/* 9 */ | ||
/* 8 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -501,7 +495,7 @@ var include = function include(filename, data, blocks, options) { | |
module.exports = include; | ||
|
||
/***/ }), | ||
/* 10 */ | ||
/* 9 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -518,7 +512,7 @@ var detectNode = __webpack_require__(0); | |
var loader = function loader(filename /*, options*/) { | ||
/* istanbul ignore else */ | ||
if (detectNode) { | ||
var fs = __webpack_require__(20); | ||
var fs = __webpack_require__(19); | ||
return fs.readFileSync(filename, 'utf8'); | ||
} else { | ||
var elem = document.getElementById(filename); | ||
|
@@ -529,7 +523,7 @@ var loader = function loader(filename /*, options*/) { | |
module.exports = loader; | ||
|
||
/***/ }), | ||
/* 11 */ | ||
/* 10 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -552,7 +546,7 @@ var onerror = function onerror(error /*, options*/) { | |
module.exports = onerror; | ||
|
||
/***/ }), | ||
/* 12 */ | ||
/* 11 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -595,7 +589,7 @@ var resolveFilename = function resolveFilename(filename, options) { | |
module.exports = resolveFilename; | ||
|
||
/***/ }), | ||
/* 13 */ | ||
/* 12 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -804,7 +798,7 @@ nativeRule._split = split; | |
module.exports = nativeRule; | ||
|
||
/***/ }), | ||
/* 14 */ | ||
/* 13 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -841,7 +835,7 @@ var nativeRule = { | |
module.exports = nativeRule; | ||
|
||
/***/ }), | ||
/* 15 */ | ||
/* 14 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -855,9 +849,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope | |
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
|
||
var isKeyword = __webpack_require__(3); | ||
var esTokenizer = __webpack_require__(16); | ||
var tplTokenizer = __webpack_require__(18); | ||
var esTokenizer = __webpack_require__(15); | ||
var tplTokenizer = __webpack_require__(17); | ||
|
||
/** 传递给模板的数据引用 */ | ||
var DATA = '$data'; | ||
|
@@ -1035,7 +1028,7 @@ var Compiler = function () { | |
var imports = options.imports; | ||
var contextMap = this.CONTEXT_MAP; | ||
|
||
if (!has(contextMap, name) && !has(external, name) && !isKeyword(name)) { | ||
if (!has(contextMap, name) && !has(external, name)) { | ||
|
||
if (has(internal, name)) { | ||
value = internal[name]; | ||
|
@@ -1312,13 +1305,13 @@ Compiler.CONSTS = { | |
module.exports = Compiler; | ||
|
||
/***/ }), | ||
/* 16 */ | ||
/* 15 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
||
|
||
var isKeyword = __webpack_require__(3); | ||
var isKeyword = __webpack_require__(21); | ||
|
||
// [email protected] | ||
// Copyright 2014, 2015, 2016, 2017 Simon Lydell | ||
|
@@ -1353,7 +1346,7 @@ var esTokenizer = function esTokenizer(code) { | |
module.exports = esTokenizer; | ||
|
||
/***/ }), | ||
/* 17 */ | ||
/* 16 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -1380,7 +1373,7 @@ TemplateError.prototype.constructor = TemplateError; | |
module.exports = TemplateError; | ||
|
||
/***/ }), | ||
/* 18 */ | ||
/* 17 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
@@ -1488,15 +1481,15 @@ tplTokenizer.TYPE_ESCAPE = TYPE_ESCAPE; | |
module.exports = tplTokenizer; | ||
|
||
/***/ }), | ||
/* 19 */ | ||
/* 18 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
"use strict"; | ||
|
||
|
||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
|
||
var render = __webpack_require__(4); | ||
var render = __webpack_require__(3); | ||
var compile = __webpack_require__(1); | ||
var defaults = __webpack_require__(2); | ||
|
||
|
@@ -1522,17 +1515,23 @@ template.defaults = defaults; | |
module.exports = template; | ||
|
||
/***/ }), | ||
/* 20 */ | ||
/* 19 */ | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = require("fs"); | ||
|
||
/***/ }), | ||
/* 21 */ | ||
/* 20 */ | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = require("html-minifier"); | ||
|
||
/***/ }), | ||
/* 21 */ | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = require("is-keyword-js"); | ||
|
||
/***/ }), | ||
/* 22 */ | ||
/***/ (function(module, exports) { | ||
|
Oops, something went wrong.