Skip to content

Commit

Permalink
Fixed benchmark build
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Nov 8, 2018
1 parent 0d30e79 commit 0509e71
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 27 deletions.
14 changes: 6 additions & 8 deletions packages/perspective/bench/config/benchmark.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
const path = require('path');
const common = require('../../src/config/common.config.js');

module.exports = Object.assign({}, common(), {
module.exports = Object.assign({}, common({no_minify: true}), {
entry: './bench/js/benchmark.js',
plugins: [],
target: "node",
externals: [/^([a-z0-9]|\@(?!apache\-arrow)).*$/],
node: {},
externals: [/^([a-z0-9]|\@(?!apache\-arrow)).*?(?!wasm)$/g],
node: {
__dirname: false,
__filename: false
},
output: {
filename: 'benchmark.js',
path: path.resolve(__dirname, '../../build'),
libraryTarget: "umd"
}
});

module.exports.module.rules.push({
test: /\.wasm$/,
loader: "arraybuffer-loader"
});
6 changes: 2 additions & 4 deletions packages/perspective/bench/js/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
import "../less/benchmark.less";

import CodeMirror from 'codemirror';
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/eclipse.css';
import '!!style-loader!css-loader!codemirror/lib/codemirror.css';
import '!!style-loader!css-loader!codemirror/theme/eclipse.css';
import 'codemirror/mode/javascript/javascript.js';

import Chart from "chart.js";

import {histogram} from "d3-array";

String.prototype.hashCode = function(){
var hash = 0;
if (this.length == 0) return hash;
Expand Down
Loading

0 comments on commit 0509e71

Please sign in to comment.