Skip to content

Commit d941a64

Browse files
authored
Add "main" to package.json to fix eslint issues
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.
1 parent 7394525 commit d941a64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vite-plugin-ruby/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Convention over configuration for using Vite in Ruby apps",
44
"version": "3.2.1",
55
"type": "module",
6+
"main": "./dist/index.js",
67
"types": "dist/index.d.ts",
78
"exports": {
89
".": {

0 commit comments

Comments
 (0)