@therobot/loljsure-loader

0.0.6 • Public • Published

jsedn parser loader for vuejs and webpack

???

(div
 (.header {v-slot:default {key value}} hello)

 (.content
  {v-slot #. (valueOne
              anotherTwo
              #someMap {key value
                        index i}
              #nested #. (state code))})

 (.footer {v-slot #.(one two)} hello))

outputs to

<div>
  <div
    v-slot:default="{key:value}"
    class="header"
  >
    hello
  </div>
  <div
    v-slot="{
              valueOne: valueOne,
              anotherTwo: anotherTwo,
              someMap: {
                key: value,
                index: i
              },
              nested: {
                state: state,
                code: code
              }
            }"
    class="content"
  >
  </div>
  <div
    v-slot="{
              one: one,
              two: two
            }"
    class="footer"
  >
    hello
  </div>
</div>

todo

finalize, write test, rewrite this garbage

wrap\fix\fork jsedn

throws errors on @ to be compiant, we do not need that, so like a thru leet i just copy node_modules/jsedn/* and comment that line... i am ashamed

Readme

Keywords

none

Package Sidebar

Install

npm i @therobot/loljsure-loader

Weekly Downloads

6

Version

0.0.6

License

ISC

Unpacked Size

40.7 kB

Total Files

18

Last publish

Collaborators

  • gcoda