Skip to content

Commit

Permalink
wasm config next
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoLuglio committed Oct 10, 2024
1 parent 98e46fa commit 90b191c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ import { bundlerModuleNameResolver } from 'typescript'

const nextConfig = {
experimental: {
useWasmBinary: true,
turbo: {
rules: {
'*.wasm': {
loader: ['onigasm'],
as: '*.wasm',
},
},
resolveAlias: {
'monaco-editor': 'monaco-editor/esm/vs/editor/editor.api',
},
Expand Down

0 comments on commit 90b191c

Please sign in to comment.