@razerspine/webpack-core 1.0.7 → 1.0.8
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/dist/config/base.js
CHANGED
|
@@ -6,7 +6,7 @@ const scripts_1 = require("../loaders/scripts");
|
|
|
6
6
|
const styles_1 = require("../loaders/styles");
|
|
7
7
|
const templates_1 = require("../loaders/templates");
|
|
8
8
|
function createBaseConfig(options) {
|
|
9
|
-
var _a, _b, _c, _d
|
|
9
|
+
var _a, _b, _c, _d;
|
|
10
10
|
const mode = (_a = options.mode) !== null && _a !== void 0 ? _a : 'development';
|
|
11
11
|
return {
|
|
12
12
|
mode,
|
|
@@ -29,13 +29,12 @@ function createBaseConfig(options) {
|
|
|
29
29
|
plugins: [
|
|
30
30
|
...(0, templates_1.templatesLoader)({
|
|
31
31
|
entry: (_b = options.templates) === null || _b === void 0 ? void 0 : _b.entry,
|
|
32
|
-
mode
|
|
33
|
-
aliases: (_d = (_c = options.resolve) === null || _c === void 0 ? void 0 : _c.alias) !== null && _d !== void 0 ? _d : {},
|
|
32
|
+
mode
|
|
34
33
|
}),
|
|
35
34
|
],
|
|
36
35
|
resolve: {
|
|
37
36
|
extensions: ['.ts', '.tsx', '.js', '.json'],
|
|
38
|
-
alias: (
|
|
37
|
+
alias: (_d = (_c = options.resolve) === null || _c === void 0 ? void 0 : _c.alias) !== null && _d !== void 0 ? _d : {}
|
|
39
38
|
},
|
|
40
39
|
};
|
|
41
40
|
}
|