Add WebAssembly integration to farm
pnpm add -D farm-plugin-wasmimport { defineConfig } from "@farmfe/core";
import wasm from 'farm-plugin-wasm';
interface Options {
  /* Your options here */
  /**
   * Whether to split the WASM file
   */
  isolate?: boolean // default: false
}
export default defineConfig({
  compilation: {
    input: {
      index: "./index.html",
    },
    output: {
      filename: 'assets/[ext]/[name].[hash].[ext]',
      assetsFilename: 'static/[resourceName].[ext]'
    },
    persistentCache: false,
    progress: false,
  },
  plugins: [
    wasm({
      isolate: false
    })
  ]
});If you set the isolateoption to true, the plugin will use top level await to get the wasm file.