adjust webpack config to exclude node modules
This commit is contained in:
parent
5b90311bef
commit
3f01c9490b
@ -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.
|
||||
|
@ -27,6 +27,8 @@
|
||||
*/
|
||||
import URI = require("urijs");
|
||||
|
||||
import * as wxApi from "./wxApi";
|
||||
|
||||
declare var cloneInto: any;
|
||||
|
||||
const PROTOCOL_VERSION = 1;
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user