@financial-times/x-engine 10.3.0 → 10.5.0

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.
Files changed (2) hide show
  1. package/package.json +7 -4
  2. package/src/webpack.js +1 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/x-engine",
3
- "version": "10.3.0",
3
+ "version": "10.5.0",
4
4
  "description": "This module is a consolidation library to render x-dash components with any compatible runtime.",
5
5
  "main": "src/server.js",
6
6
  "browser": "src/client.js",
@@ -9,9 +9,6 @@
9
9
  ],
10
10
  "author": "",
11
11
  "license": "ISC",
12
- "dependencies": {
13
- "assign-deep": "^1.0.0"
14
- },
15
12
  "repository": {
16
13
  "type": "git",
17
14
  "url": "https://github.com/Financial-Times/x-dash.git"
@@ -32,5 +29,11 @@
32
29
  },
33
30
  "devDependencies": {
34
31
  "check-engine": "^1.10.1"
32
+ },
33
+ "peerDependencies": {
34
+ "webpack": "4.x"
35
+ },
36
+ "dependencies": {
37
+ "assign-deep": "^1.0.1"
35
38
  }
36
39
  }
package/src/webpack.js CHANGED
@@ -18,16 +18,12 @@ module.exports = function () {
18
18
  // 3. format the configuration we've loaded
19
19
  const config = formatConfig(raw)
20
20
 
21
- // 4. if this module is a linked dependency then resolve Webpack & runtime to CWD
22
- const webpackResolution = resolvePeer('webpack')
21
+ const webpack = require('webpack')
23
22
  const runtimeResolution = resolvePeer(config.runtime)
24
23
  const renderResolution = resolvePeer(config.renderModule)
25
24
 
26
- const webpack = require(webpackResolution)
27
-
28
25
  return {
29
26
  apply(compiler) {
30
- // 5. alias the runtime name to the resolved runtime path
31
27
  assignDeep(compiler.options, {
32
28
  resolve: {
33
29
  alias: {