Parcel Transformer Svelte Save

Parcel 2 transformer for Svelte 3

Project README

parcel-transformer-svelte

A Parcel 2 transformer for Svelte 3.

Installation

npm install parcel-transformer-svelte -D

After this you should configure in .parcelrc the transformation for Svelte files:

{
  "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.

// Options used by svelte.compile
compilerOptions: {
  ...
},
// Preprocessors for svelte.preprocess
preprocessors: {
  ...
}

License

MIT License

Open Source Agenda is not affiliated with "Parcel Transformer Svelte" Project. README Source: orlov-vo/parcel-transformer-svelte
Stars
40
Open Issues
9
Last Commit
5 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating