Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-courier/rollup-plugin-go-wasm
https://github.com/go-courier/rollup-plugin-go-wasm
golang rollup vitejs webassembly
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/go-courier/rollup-plugin-go-wasm
- Owner: go-courier
- Created: 2021-11-10T10:07:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-10T10:40:53.000Z (about 3 years ago)
- Last Synced: 2024-09-30T10:40:54.517Z (about 2 months ago)
- Topics: golang, rollup, vitejs, webassembly
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rollup Plugin Go Wasm
## Features
```
app/
main.go
main.ts
``````ts
// main.ts
// @ts-ignore
import ("main.go").then(({ main }) => main());
```## In Vite
```js
import { defineConfig } from "vite";
import goWasm from "@go-courier/rollup-plugin-go-wasm";export default defineConfig({
root: "./app",
build: {
assetsDir: "static",
},
plugins: [
goWasm({
// don't added this if play with rollup
importWasmSuffix: "?url",
}),
],
});
```