Opiniated "bundler" for svelte projects using nativ esbuild, without any comfortable features like others have
npm i -D sveasy
sveasy <cmd> [options]
š¤ Alexander Niebuhr
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a āļø if this project helped you!
Copyright Ā© 2021 Alexander Niebuhr.
This project is ISC licensed.
This README was generated with ā¤ļø by readme-md-generator
let examplePlugin = { name: 'example', setup(build) { console.log(build.esbuild.version) console.log(build.esbuild.transformSync('1+2')) }, }
let examplePlugin = { name: 'example', setup(build) { build.onResolve({ filter: /^example$/ }, async () => { const result = await build.resolve('./foo', { resolveDir: '/bar' }) if (result.errors.length > 0) return result return { ...result, external: true } }) }, }