- Switch to ES Modules
- Handle vue files that contain both
<script>
and<script setup>
.
- Fix indent of whitespace-only lines. Thanks to @nemoDreamer.
- Preserve indent of
<script>
and<style>
tags. Thanks to @SevInf
- Update dependencies
- Update dependencies
- Update dependencies
- Update dependencies
The "modify any block of a vue component" use case is temporarily not supported until the API is figured out.
As of 2.0.0, this module can only
- transform js files
- transform the
<script>
block of vue files
- Ability to run on directory containing js and vue files (#4).
- No longer changing spacing inside
<template>
whentransform()
doesn't touch it (#3)
- Transform can change
<script>
content throughfileInfo.script.content
- Transform can change
<template>
content throughfileInfo.template.content
- Transform can change
<style>
content throughfileInfo.style.content
- Initial impl