@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.
@@ -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, _e, _f;
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: (_f = (_e = options.resolve) === null || _e === void 0 ? void 0 : _e.alias) !== null && _f !== void 0 ? _f : {}
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
  }
@@ -1,5 +1,4 @@
1
1
  export declare function templatesLoader(options: {
2
2
  entry?: string;
3
3
  mode: 'development' | 'production';
4
- aliases?: Record<string, string> | {};
5
4
  }): any[];
@@ -25,10 +25,7 @@ function templatesLoader(options) {
25
25
  filename: options.mode === 'production'
26
26
  ? 'css/[name].[contenthash:8].css'
27
27
  : 'css/[name].css',
28
- },
29
- resolve: {
30
- alias: options.aliases,
31
- },
28
+ }
32
29
  }),
33
30
  ];
34
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razerspine/webpack-core",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Core webpack config and loaders for starter templates",
5
5
  "license": "ISC",
6
6
  "author": "Razerspine",