]>
Commit | Line | Data |
---|---|---|
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | |
2 | From: Dominik Csapak <d.csapak@proxmox.com> | |
3 | Date: Thu, 2 Apr 2020 07:10:18 +0000 | |
4 | Subject: [PATCH] adapt webpack config | |
5 | ||
6 | adds 'cli-engine' to build (we use it in our wrapper) | |
7 | and target 'node' since we will use it on the cli | |
8 | ||
9 | Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> | |
10 | --- | |
11 | webpack.config.js | 3 ++- | |
12 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
13 | ||
14 | diff --git a/webpack.config.js b/webpack.config.js | |
15 | index a22c99b..9209159 100644 | |
16 | --- a/webpack.config.js | |
17 | +++ b/webpack.config.js | |
18 | @@ -4,8 +4,9 @@ const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); | |
19 | /** @type {import("webpack").Configuration} */ | |
20 | module.exports = { | |
21 | mode: "none", | |
22 | + target: "node", | |
23 | entry: { | |
24 | - eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"] | |
25 | + eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js", "./lib/eslint/index.js"] | |
26 | }, | |
27 | output: { | |
28 | filename: "[name].js", | |
29 | -- | |
30 | 2.20.1 |