File: 1001_webpack_upgrade.patch

package info (click to toggle)
node-trust-json-document 0.1.4~dfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: javascript: 5,493; makefile: 32; sh: 1
file content (21 lines) | stat: -rw-r--r-- 591 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Use syntax compatible with Webpack 4
 "loaders" is incompatible with Webpack 4.
 .
 According to <https://stackoverflow.com/a/43805263>
 "rules" supersedes "loaders" since Webpack 2,
 so should be backporting-friendly and usable with Webpack 3.
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2019-08-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -11,7 +11,7 @@
     libraryTarget: 'var'
   },
   module: {
-    loaders: [
+    rules: [
       {
         test: /\.json$/,
         loader: 'json'