Skip to content

Commit

Permalink
Add "main" to package.json to fix eslint issues
Browse files Browse the repository at this point in the history
Using eslint, I'm getting an `import/no-unresolved: Unable to resolve path to module 'vite-plugin-ruby'` when it clearly exists. Looking at [this ticket](browserify/resolve#222) I believe that is happening because there is no `main` key in the package.json. This updates the package.json to include this.
  • Loading branch information
vimalloc committed Apr 17, 2023
1 parent 7394525 commit d941a64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vite-plugin-ruby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Convention over configuration for using Vite in Ruby apps",
"version": "3.2.1",
"type": "module",
"main": "./dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
Expand Down

0 comments on commit d941a64

Please sign in to comment.