ElMassimo / vite_ruby

⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience
https://vite-ruby.netlify.app/
MIT License
1.28k stars 117 forks source link

Add "main" to package.json to fix eslint issues #356

Closed vimalloc closed 1 year ago

vimalloc commented 1 year ago

Description 📖

Using eslint, I'm getting an import/no-unresolved: Unable to resolve path to module 'vite-plugin-ruby' when it clearly exists.

Background 📜

Looking at this ticket I believe that is happening because there is no main key in the package.json. Note that this error is not happening with the vite-rails-plugin, which does specify the main key.

The Fix 🔨

This updates the package.json to include the main key.

ElMassimo commented 1 year ago

Thanks Lily!