Adding debug to fix the compile error

canary
WolverinDEV 2020-09-01 21:53:37 +02:00
parent 8631b0d823
commit 66ea9829b6
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import * as fs from "fs-extra";
import * as path from "path";
import * as config_base from "./webpack.config";
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
@ -17,6 +18,8 @@ export = () => config_base.config("web").then(config => {
config.node = config.node || {};
config.node["fs"] = "empty";
console.error("Directory: %s", path.resolve(__dirname, "web", "audio-lib"));
console.error("Stats: %o", fs.statSync(path.resolve(__dirname, "web", "audio-lib")));
config.plugins.push(new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, "web", "audio-lib"),
outName: "index",