]> git.proxmox.com Git - pve-eslint.git/blame_incremental - patches/0001-adapt-webpack-config.patch
change from CLIEngine to ESLint
[pve-eslint.git] / patches / 0001-adapt-webpack-config.patch
... / ...
CommitLineData
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Dominik Csapak <d.csapak@proxmox.com>
3Date: Thu, 2 Apr 2020 07:10:18 +0000
4Subject: [PATCH] adapt webpack config
5
6adds 'cli-engine' to build (we use it in our wrapper)
7and target 'node' since we will use it on the cli
8
9Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
10---
11 webpack.config.js | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14diff --git a/webpack.config.js b/webpack.config.js
15index 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--
302.20.1