Skip to content

Commit 96a7d92

Browse files
authored
Merge pull request #5779 from andreafonso/patch-1
Improve README for ES6 module import
2 parents 6f006ee + 3c84b21 commit 96a7d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
7171

7272
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
7373
```html
74-
<script>
74+
<script type="module">
7575
import "https://cdn.plot.ly/plotly-2.2.0.min.js"
7676
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
7777
</script>

0 commit comments

Comments
 (0)