pve-eslint/patches/0001-adapt-webpack-config.patch
Dominik Csapak eb39fafa4f first commit
includes a (minimal) working wrapper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-06 15:06:03 +02:00

40 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Dominik Csapak <d.csapak@proxmox.com>
Date: Thu, 2 Apr 2020 07:10:18 +0000
Subject: [PATCH] adapt webpack config
changes to 'var' from 'umd' since we want to use it in the same file
adds 'cli-engine' to build (we use it in our wrapper)
and target 'node' since we will use it on the cli
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
webpack.config.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/webpack.config.js b/webpack.config.js
index 29d60cb4..95027075 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -2,14 +2,14 @@
module.exports = {
mode: "none",
+ target: "node",
entry: {
- eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"]
+ eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js", "./lib/cli-engine/index.js"]
},
output: {
filename: "[name].js",
library: "[name]",
- libraryTarget: "umd",
- globalObject: "this"
+ libraryTarget: "var"
},
module: {
rules: [
--
2.20.1