]> git.proxmox.com Git - pve-eslint.git/blame - patches/0001-adapt-webpack-config.patch
change from CLIEngine to ESLint
[pve-eslint.git] / patches / 0001-adapt-webpack-config.patch
CommitLineData
eb39fafa
DC
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
eb39fafa
DC
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---
4b0098f6
DC
11 webpack.config.js | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
eb39fafa
DC
13
14diff --git a/webpack.config.js b/webpack.config.js
4b0098f6 15index a22c99b..9209159 100644
eb39fafa
DC
16--- a/webpack.config.js
17+++ b/webpack.config.js
4b0098f6
DC
18@@ -4,8 +4,9 @@ const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
19 /** @type {import("webpack").Configuration} */
eb39fafa
DC
20 module.exports = {
21 mode: "none",
22+ target: "node",
23 entry: {
24- eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"]
7a730cb6 25+ eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js", "./lib/eslint/index.js"]
eb39fafa
DC
26 },
27 output: {
28 filename: "[name].js",
eb39fafa
DC
29--
302.20.1