From d381226f21f1d0605d06ccae56c38ab6b12f88f0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 27 May 2017 18:43:11 +0200 Subject: Simplify loading of the emscripten lib. This removes an ugly hack and makes it possible to access the emscripten compiled library from within nodejs test cases more easily. --- webpack.config.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index a99d2a7c8..deca2ae76 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -34,13 +34,8 @@ module.exports = function (env) { base.plugins.push(new webpack.LoaderOptionsPlugin({minimize: true})); } const configWebWorker = { - entry: {"cryptoWorker": "./src/cryptoWorker.ts"}, + entry: {"cryptoWorker": "./src/crypto/cryptoWorker.ts"}, target: "webworker", - externals: { - // A big hack to load taler-emscripten-lib from the environment, - // because we exclude it from the bundle. - "./emscripten/taler-emscripten-lib": "(self.TalerEmscriptenLib = {}, importScripts('/src/emscripten/taler-emscripten-lib.js'), TalerEmscriptenLib)", - }, }; const configBackground = { -- cgit v1.2.3