Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orlov-vo/parcel-transformer-svelte
Parcel 2 transformer for Svelte 3
https://github.com/orlov-vo/parcel-transformer-svelte
parcel-transformer parcel2 svelte3
Last synced: 2 months ago
JSON representation
Parcel 2 transformer for Svelte 3
- Host: GitHub
- URL: https://github.com/orlov-vo/parcel-transformer-svelte
- Owner: orlov-vo
- License: mit
- Created: 2019-10-26T17:48:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-28T21:32:43.000Z (12 months ago)
- Last Synced: 2024-09-29T12:02:22.552Z (3 months ago)
- Topics: parcel-transformer, parcel2, svelte3
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/parcel-transformer-svelte
- Size: 595 KB
- Stars: 40
- Watchers: 4
- Forks: 18
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parcel-transformer-svelte
A Parcel 2 transformer for Svelte 3.
## Installation
```bash
npm install parcel-transformer-svelte -D
```After this you should configure in `.parcelrc` the transformation for Svelte files:
```json
{
"extends": ["@parcel/config-default"],
"transformers": {
"*.svelte": ["parcel-transformer-svelte"]
}
}
```## Configuration
You can change Svelte options though a `.svelterc`, `svelte.config.js` file or `svelte` field
in `package.json`.For documentation on which options you can use look at the official
[svelte docs](https://github.com/sveltejs/svelte).```js
// Options used by svelte.compile
compilerOptions: {
...
},
// Preprocessors for svelte.preprocess
preprocessors: {
...
}
```## License
MIT License