tjw-lint / vue3-snapshot-serializer

Vitest/Jest Snapshot Serializer for Vue 3 components
https://TheJaredWilcurt.com/vue-snapshot-serializer
MIT License
3 stars 2 forks source link

Build step or de-alias #17

Closed TheJaredWilcurt closed 1 month ago

TheJaredWilcurt commented 1 month ago

Some of the files in the src folder do import x from '@/file.js'. So when npm installed, the library no longer works, because the aliases are not resolved.

Options:

  1. Change @ to . and everything works, in the src files, users just use the source files directly.
  2. Add a build step to produce various builds (ESM/CJS/Etc)

Renaming seems better over-all