forked from platform-system-interface/dtvis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
30 lines (29 loc) · 762 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/** @type {import('next').NextConfig} */
const path = require('path');
const WasmPackPlugin = require('@wasm-tool/wasm-pack-plugin');
module.exports = {
output: "export",
basePath: "/dtvis",
experimental: {
webpackBuildWorker: true,
},
webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => ({
...config,
experiments: {
asyncWebAssembly: true,
layers: true,
},
plugins: [
...config.plugins,
// Check https://rustwasm.github.io/wasm-pack/book/commands/build.html
// for the available set of arguments.
new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, 'parser'),
args: '--log-level info --verbose',
}),
],
}),
};