{"library":"rollup-plugin-assemblyscript","title":"rollup-plugin-assemblyscript","description":"A Rollup plugin (v2.0.0) that imports AssemblyScript (.as) files and compiles them on-the-fly into WebAssembly modules. It supports custom compiler options, a configurable import matcher (default `asc:` prefix), and optional integration with as-bind for high-level type bindings. Distinct from other WASM plugins by targeting AssemblyScript specifically and offering tight rollup integration. Requires AssemblyScript and as-bind as peer dependencies. Maintained by the AssemblyScript team.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-assemblyscript"],"cli":null},"imports":["import { asc } from 'rollup-plugin-assemblyscript'","import ascPlugin from 'rollup-plugin-assemblyscript'","import wasmUrl from 'asc:./addition.as'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport { asc } from 'rollup-plugin-assemblyscript';\nimport { defineConfig } from 'rollup';\n\nexport default defineConfig({\n  input: 'src/main.js',\n  output: { dir: 'dist', format: 'esm' },\n  plugins: [\n    asc({\n      compilerOptions: { optimizeLevel: 3 },\n      matcher: /^asc:/,\n      useAsBind: false\n    })\n  ]\n});","lang":"typescript","description":"Shows minimal rollup config using asc plugin with compiler options, default matcher, and as-bind disabled.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}