Trying to add monaco

This commit is contained in:
2025-02-22 23:05:30 -06:00
parent 16c81c7a80
commit fda26a892c
4 changed files with 899 additions and 10 deletions
+13 -2
View File
@@ -1,7 +1,18 @@
import type { NextConfig } from "next";
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const nextConfig: NextConfig = {
/* config options here */
webpack: (config, { isServer }) => {
if (!isServer) {
config.plugins.push(
new MonacoWebpackPlugin({
languages: ['typescript', 'javascript'],
filename: 'static/[name].worker.js',
})
);
}
return config;
},
};
export default nextConfig;
export default nextConfig;