-
Notifications
You must be signed in to change notification settings - Fork 6
/
next.config.js
30 lines (28 loc) · 933 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
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
const nextTranspileModules = require("next-transpile-modules");
const withPlugins = require("next-compose-plugins");
const { withAxiom } = require("next-axiom");
const withTM = nextTranspileModules(["monaco-editor", "@onflow/flow-cadut"]);
module.exports = withPlugins(
[
[withAxiom, {}],
[withTM, {}],
],
{
reactStrictMode: true,
outputFileTracing: false,
webpack: (config) => {
config.resolve.alias["vscode"] = require.resolve(
"monaco-languageclient/lib/vscode-compatibility"
);
config.plugins.push(
new MonacoWebpackPlugin({
languages: ["json"],
features: [],
filename: "static/[name].worker.js",
})
);
return config;
},
}
);