sveasy
v0.11.5
Published
<h1 align="center">Welcome to sveasy π</h1> <p> <a href="https://www.npmjs.com/package/sveasy" target="_blank"> <img alt="Version" src="https://img.shields.io/npm/v/sveasy.svg"> </a> <img src="https://img.shields.io/badge/node-%3E14.x-blue.svg"
Downloads
86
Readme
Opiniated "bundler" for svelte projects using nativ esbuild, without any comfortable features like others have
π Homepage
Prerequisites
- node >14.x
Install
npm i -D sveasy
Usage
sveasy <cmd> [options]
Author
π€ Alexander Niebuhr
- Website: https://nbhr.io
- Twitter: @realalexniebuhr
- Github: @alexanderniebuhr
- LinkedIn: @alexanderniebuhr
π€ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a βοΈ if this project helped you!
π License
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 } }) }, }