F9Alejandro 695cad9ec8
Initial Commit:
Added example plugins: Counter, Console, Ping

Changes to be committed:
	modified:   .gitignore
	modified:   README.md
	new file:   compiled/counter.wasm
	new file:   compiled/ping.wasm
	new file:   console/LICENSE
	new file:   console/README.md
	new file:   console/esbuild.js
	new file:   console/package-lock.json
	new file:   console/package.json
	new file:   console/src/index.d.ts
	new file:   console/src/index.js
	new file:   counter/LICENSE
	new file:   counter/README.md
	new file:   counter/esbuild.js
	new file:   counter/package-lock.json
	new file:   counter/package.json
	new file:   counter/src/index.d.ts
	new file:   counter/src/index.js
	new file:   ping/LICENSE
	new file:   ping/README.md
	new file:   ping/esbuild.js
	new file:   ping/package-lock.json
	new file:   ping/package.json
	new file:   ping/src/index.d.ts
	new file:   ping/src/index.js
2025-04-26 00:02:46 -04:00

12 lines
348 B
JavaScript

const esbuild = require('esbuild');
esbuild
.build({
entryPoints: ['src/index.js'],
outdir: 'dist',
bundle: true,
sourcemap: true,
minify: false, // might want to use true for production build
format: 'cjs', // needs to be CJS for now
target: ['es2020'] // don't go over es2020 because quickjs doesn't support it
})