vite-plugin-elm-debug-transformer

0.0.1 • Public • Published

Vite plugin for Elm Debug Transformer

Vite plugin for adding Elm Debug transformer to the index.html page on dev server.

Installation

npm install -D vite-plugin-elm-debug-transformer elm-debug-transformer

Usage

In vite.config.js just import and use this plugin.

import { defineConfig } from 'vite'
import plugin from 'vite-plugin-elm'
import transformer from 'vite-plugin-elm-debug-transformer'

export default defineConfig({
  plugins: [plugin(), transformer() ]
})

Options

Plugin is passing options to the register function of the elm-debug-transformer.

parameter type description default value
limit number number of message characters after which the parser won't parse the message. (Helpful for bypass the parsing of large datastructures) 1 000 000
debug boolean include original message and parser error with the message false
simple_mode boolean force output to be in simple object format false
theme light,dark sets theme colour of debug output. It is useful for switching on the dark mode of devtools. light

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.11

Package Sidebar

Install

npm i vite-plugin-elm-debug-transformer

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

4.62 kB

Total Files

6

Last publish

Collaborators

  • kraklin