weboptimizer 2.0.1473 → 2.0.1474
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helper.js +1 -1
- package/package.json +1 -1
- package/test/simple/index.js +79 -0
package/helper.js
CHANGED
|
@@ -677,7 +677,7 @@ var Helper = exports.Helper = /*#__PURE__*/function () {
|
|
|
677
677
|
try {
|
|
678
678
|
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
|
|
679
679
|
var moduleFilePath = _step12.value;
|
|
680
|
-
if (!(moduleFilePathsToExclude.includes(moduleFilePath) || _clientnode["default"].isAnyMatching(moduleFilePath, moduleFilePathPatternToExclude))) {
|
|
680
|
+
if (!(moduleFilePathsToExclude.includes(moduleFilePath) || _clientnode["default"].isAnyMatching(moduleFilePath.substring(context.length), moduleFilePathPatternToExclude))) {
|
|
681
681
|
var relativeModuleFilePath = "./".concat((0, _path.relative)(context, moduleFilePath));
|
|
682
682
|
var directoryPath = (0, _path.dirname)(relativeModuleFilePath);
|
|
683
683
|
var baseName = (0, _path.basename)(relativeModuleFilePath, ".".concat(buildConfiguration.extension));
|
package/package.json
CHANGED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';if(typeof module!=='undefined'&&module!==null&&eval('typeof require')!=='undefined'&&eval('require')!==null&&'main'in eval('require')&&eval('typeof require.main')!=='undefined'&&eval('require.main')!==null){var ORIGINAL_MAIN_MODULE=module;if(module!==eval('require.main')&&'paths'in module&&'paths'in eval('require.main')&&typeof __dirname!=='undefined'&&__dirname!==null)module.paths=eval('require.main.paths').concat(module.paths.filter(function(path){return eval('require.main.paths').includes(path)}))};if(typeof window==='undefined'||window===null)var window=(typeof global==='undefined'||global===null)?{}:global;(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = factory();
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function() {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ // The require scope
|
|
14
|
+
/******/ var __webpack_require__ = {};
|
|
15
|
+
/******/
|
|
16
|
+
/************************************************************************/
|
|
17
|
+
/******/ /* webpack/runtime/define property getters */
|
|
18
|
+
/******/ !function() {
|
|
19
|
+
/******/ // define getter functions for harmony exports
|
|
20
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
21
|
+
/******/ for(var key in definition) {
|
|
22
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
23
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
24
|
+
/******/ }
|
|
25
|
+
/******/ }
|
|
26
|
+
/******/ };
|
|
27
|
+
/******/ }();
|
|
28
|
+
/******/
|
|
29
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
30
|
+
/******/ !function() {
|
|
31
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
32
|
+
/******/ }();
|
|
33
|
+
/******/
|
|
34
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
35
|
+
/******/ !function() {
|
|
36
|
+
/******/ // define __esModule on exports
|
|
37
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
38
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
39
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/ }();
|
|
44
|
+
/******/
|
|
45
|
+
/************************************************************************/
|
|
46
|
+
var __webpack_exports__ = {};
|
|
47
|
+
/*!******************!*\
|
|
48
|
+
!*** ./index.ts ***!
|
|
49
|
+
\******************/
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
52
|
+
/* harmony export */ main: function() { return /* binding */ main; }
|
|
53
|
+
/* harmony export */ });
|
|
54
|
+
// -*- coding: utf-8 -*-
|
|
55
|
+
/** @module dummy */
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/* !
|
|
59
|
+
region header
|
|
60
|
+
[Project page](https://torben.website/weboptimizer)
|
|
61
|
+
|
|
62
|
+
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
63
|
+
|
|
64
|
+
License
|
|
65
|
+
-------
|
|
66
|
+
|
|
67
|
+
This library written by Torben Sickert stand under a creative commons
|
|
68
|
+
naming 3.0 unported license.
|
|
69
|
+
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
70
|
+
endregion
|
|
71
|
+
*/
|
|
72
|
+
var main = function main() {
|
|
73
|
+
return console.info('Running simple dummy module');
|
|
74
|
+
};
|
|
75
|
+
/* harmony default export */ __webpack_exports__["default"] = (main);
|
|
76
|
+
/******/ return __webpack_exports__;
|
|
77
|
+
/******/ })()
|
|
78
|
+
;
|
|
79
|
+
});
|