gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-webex] branch master updated: adjust webpack


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] branch master updated: adjust webpack config to exclude node modules
Date: Mon, 29 May 2017 02:44:33 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-webex.

The following commit(s) were added to refs/heads/master by this push:
     new 3f01c949 adjust webpack config to exclude node modules
3f01c949 is described below

commit 3f01c9490bd6932aa991ecd86e8aaacecb911efc
Author: Florian Dold <address@hidden>
AuthorDate: Mon May 29 02:44:28 2017 +0200

    adjust webpack config to exclude node modules
---
 src/crypto/emscLoader.js | 2 +-
 src/webex/notify.ts      | 2 ++
 webpack.config.js        | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/crypto/emscLoader.js b/src/crypto/emscLoader.js
index 190f007f..eee2c800 100644
--- a/src/crypto/emscLoader.js
+++ b/src/crypto/emscLoader.js
@@ -35,7 +35,7 @@ export function getLib() {
     // Make sure that TypeScript doesn't try
     // to check the taler-emscripten-lib.
     const indirectRequire = require;
-    const g = global as any;
+    const g = global;
     // unavoidable hack, so that emscripten detects
     // the environment as node even though importScripts
     // is present.
diff --git a/src/webex/notify.ts b/src/webex/notify.ts
index 23e73d14..c743240a 100644
--- a/src/webex/notify.ts
+++ b/src/webex/notify.ts
@@ -27,6 +27,8 @@
  */
 import URI = require("urijs");
 
+import * as wxApi from "./wxApi";
+
 declare var cloneInto: any;
 
 const PROTOCOL_VERSION = 1;
diff --git a/webpack.config.js b/webpack.config.js
index f4771793..49a7b865 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -28,6 +28,7 @@ module.exports = function (env) {
     },
     plugins: [],
     devtool: "source-map",
+    externals: ["fs", "path", "child_process", /.*taler-emscripten-lib.*/],
   }
   if (env.prod) {
     base.plugins.push(new webpack.optimize.UglifyJsPlugin());

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]