@cypress/webpack-dev-server 3.0.0 → 3.0.1

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.
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const debug_1 = require("debug");
6
6
  const path = tslib_1.__importStar(require("path"));
7
7
  const webpack_merge_1 = require("webpack-merge");
8
+ const local_pkg_1 = require("local-pkg");
8
9
  const makeDefaultWebpackConfig_1 = require("./makeDefaultWebpackConfig");
9
10
  const constants_1 = require("./constants");
10
11
  const dynamic_import_1 = require("./dynamic-import");
@@ -68,7 +69,7 @@ async function makeWebpackConfig(config) {
68
69
  const configFile = await getWebpackConfigFromProjectRoot(projectRoot);
69
70
  if (configFile) {
70
71
  debug('found webpack config %s', configFile);
71
- const sourcedConfig = await (0, dynamic_import_1.dynamicAbsoluteImport)(configFile);
72
+ const sourcedConfig = await (0, local_pkg_1.importModule)(configFile);
72
73
  debug('config contains %o', sourcedConfig);
73
74
  if (sourcedConfig && typeof sourcedConfig === 'object') {
74
75
  userWebpackConfig = (_a = sourcedConfig.default) !== null && _a !== void 0 ? _a : sourcedConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/webpack-dev-server",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Launches Webpack Dev Server for Component Testing",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -21,6 +21,7 @@
21
21
  "fs-extra": "9.1.0",
22
22
  "html-webpack-plugin-4": "npm:html-webpack-plugin@^4",
23
23
  "html-webpack-plugin-5": "npm:html-webpack-plugin@^5",
24
+ "local-pkg": "0.4.1",
24
25
  "speed-measure-webpack-plugin": "1.4.2",
25
26
  "tslib": "^2.3.1",
26
27
  "webpack-dev-server": "^4.7.4",