https://github.com/idleberg/vite-plugin-decaffeinate
A Vite plugin for your CoffeeScript projects
https://github.com/idleberg/vite-plugin-decaffeinate
coffee-script coffeescript decaffeinate vite-plugin
Last synced: 8 months ago
JSON representation
A Vite plugin for your CoffeeScript projects
- Host: GitHub
- URL: https://github.com/idleberg/vite-plugin-decaffeinate
- Owner: idleberg
- License: mit
- Created: 2025-01-06T22:29:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-02T20:28:56.000Z (about 1 year ago)
- Last Synced: 2025-10-14T09:34:30.418Z (8 months ago)
- Topics: coffee-script, coffeescript, decaffeinate, vite-plugin
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/vite-plugin-decaffeinate
- Size: 205 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-decaffeinate
> A Vite plugin for your CoffeeScript projects
[](https://github.com/idleberg/vite-plugin-decaffeinate/blob/main/LICENSE)
[](https://www.npmjs.org/package/vite-plugin-decaffeinate)
[](https://github.com/idleberg/vite-plugin-decaffeinate/actions)
## Installation
`npm install -D vite-plugin-decaffeinate`
## Usage
```js
import { defineConfig } from 'vite';
import decaffeinate from 'vite-plugin-decaffeinate';
export default defineConfig({
plugins: [
decaffeinate({
// the following are the default values
disableSuggestionComment: false,
disallowInvalidConstructors: false,
literate: false,
logicalAssignment: false,
loose: false,
looseComparisonNegation: false,
looseDefaultParams: false,
looseForExpressions: false,
looseForOf: false,
looseIncludes: false,
looseJSModules: false,
noArrayIncludes: false,
nullishCoalescing: false,
optionalChaining: false,
preferLet: false,
safeImportFunctionIdentifiers: [],
useCS2: false,
useJSModules: false,
})
]
});
```
### Options
Please refer to the [Decaffeinate documentation](https://github.com/decaffeinate/decaffeinate) for available options.
## License
This work is licensed under [The MIT License](LICENSE).