1
0
Эх сурвалжийг харах

Update the import statement

As the `Alpine` variable is not used in the installation example, eslint could throw a `'Alpine' is defined but never used` error which would cause a build to fail.

Simplifying the import statement and not setting a variable name fixes this issue.
Oliver Davies 5 жил өмнө
parent
commit
aa91983748
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -26,7 +26,7 @@ npm i alpinejs
 
 Include it in your script.
 ```js
-import Alpine from 'alpinejs'
+import 'alpinejs'
 ```
 
 For IE11, polyfills will need to be provided. Please load the following scripts before the Alpine script above.