Monaco code example working

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