Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
eslint + webpack entry mistake
  • Loading branch information
mini-eggs committed Jun 7, 2017
commit 215f7bc550a1d2fe532c3d8db35e9296d3619a8d
4 changes: 2 additions & 2 deletions examples/mini-benchmark/src/js/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { load } from "webassembly";
const wasm = require("webassembly");
const numOne = 1;
const numTwo = 2;
const bench = 1000000;
Expand All @@ -13,7 +13,7 @@ async function benchmark() {
/**
* Desctruct add function from WebAssembly.
*/
const { exports: { add } } = await load("program.wasm");
const { exports: { add } } = await wasm.load("program.wasm");

/**
* JavaScript benchmark.
Expand Down
1 change: 0 additions & 1 deletion examples/mini-benchmark/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const htmlWebpackPlugin = require("html-webpack-plugin");

module.exports = {
entry: "./src/js/main.js",
entry: `${process.cwd()}/src/js/main.js`,
output: {
path: `${process.cwd()}/dist`,
Expand Down