Skip to content

Commit

Permalink
add module field to package.json for ES Module imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Joren Broekema committed Sep 30, 2020
1 parent d32047a commit 9c562f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

##### v.4.0.3 - 2020-09-30
* Add module field to package.json so autosize can be imported as an ES Module

##### v.4.0.2 - 2018-04-30
* More specific detection of when to change overflow. Merges #361.

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "autosize",
"description": "Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.",
"version": "4.0.2",
"version": "4.0.3",
"keywords": [
"textarea",
"form",
Expand All @@ -17,6 +17,7 @@
"email": "hello@jacklmoore.com"
},
"main": "dist/autosize.js",
"module": "src/autosize.js",
"license": "MIT",
"homepage": "http://www.jacklmoore.com/autosize",
"demo": "http://www.jacklmoore.com/autosize",
Expand Down

0 comments on commit 9c562f2

Please sign in to comment.