Browse Source

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 years ago
parent
commit
aa91983748
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -26,7 +26,7 @@ npm i alpinejs
 
 
 Include it in your script.
 Include it in your script.
 ```js
 ```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.
 For IE11, polyfills will need to be provided. Please load the following scripts before the Alpine script above.