Adding debug to fix the compile error
parent
8631b0d823
commit
66ea9829b6
|
@ -1,3 +1,4 @@
|
||||||
|
import * as fs from "fs-extra";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import * as config_base from "./webpack.config";
|
import * as config_base from "./webpack.config";
|
||||||
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
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 = config.node || {};
|
||||||
config.node["fs"] = "empty";
|
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({
|
config.plugins.push(new WasmPackPlugin({
|
||||||
crateDirectory: path.resolve(__dirname, "web", "audio-lib"),
|
crateDirectory: path.resolve(__dirname, "web", "audio-lib"),
|
||||||
outName: "index",
|
outName: "index",
|
||||||
|
|
Loading…
Reference in New Issue