]> git.proxmox.com Git - pve-eslint.git/blob - patches/0001-adapt-webpack-config.patch
4698e74802496d0cccb11bf6040ba85ffa54823e
[pve-eslint.git] / patches / 0001-adapt-webpack-config.patch
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 changes to 'var' from 'umd' since we want to use it in the same file
7 adds 'cli-engine' to build (we use it in our wrapper)
8 and target 'node' since we will use it on the cli
9
10 Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
11 ---
12 webpack.config.js | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
14
15 diff --git a/webpack.config.js b/webpack.config.js
16 index 29d60cb4..95027075 100644
17 --- a/webpack.config.js
18 +++ b/webpack.config.js
19 @@ -2,14 +2,14 @@
20
21 module.exports = {
22 mode: "none",
23 + target: "node",
24 entry: {
25 - eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"]
26 + eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js", "./lib/cli-engine/index.js"]
27 },
28 output: {
29 filename: "[name].js",
30 library: "[name]",
31 - libraryTarget: "umd",
32 - globalObject: "this"
33 + libraryTarget: "var"
34 },
35 module: {
36 rules: [
37 --
38 2.20.1
39