Skip to content

Commit 54c3cb5

Browse files
committed
Fix default export
1 parent 48cb8cf commit 54c3cb5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ yarn add netlify-identity-widget
7676
Import or require as usual:
7777

7878
```js
79-
import netlifyIdentity from "netlify-identity-widget"
79+
const netlifyIdentity = require("netlify-identity-widget")
8080

8181
netlifyIdentity.init({
8282
container: "#netlify-modal" // defaults to document.body

webpack.config.babel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ module.exports = {
2020
publicPath: "/",
2121
filename: "[name].js",
2222
library: "netlifyIdentity",
23-
libraryTarget: "umd"
23+
libraryTarget: "umd",
24+
libraryExport: "default"
2425
},
2526

2627
resolve: {

0 commit comments

Comments
 (0)