Skip to content

Commit

Permalink
v3.0.4 - Changed ESM module target
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanko committed Jun 19, 2022
1 parent 7b62590 commit edac80d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,15 @@
# Changelog

### v3.0.4

19.06.2022.

**Fixed**

- Fixed [#129](https://github.com/Stanko/react-animate-height/issues/129) by swapping ESM module target from `esnext` to `ES2015` (aka `es6`).

---

### v3.0.0-v3.0.3

31.05.2022.
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "react-animate-height",
"version": "3.0.3",
"version": "3.0.4",
"description": "Lightweight React component for animating height using CSS transitions.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -22,7 +22,7 @@
},
"scripts": {
"clean": "rm -rf dist",
"build:esm": "tsc -p tsconfig-esm.json && echo '{ \"type\": \"module\" }' > dist/esm/package.json",
"build:esm": "tsc -p tsconfig.json && echo '{ \"type\": \"module\" }' > dist/esm/package.json",
"build:cjs": "tsc -p tsconfig-cjs.json && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:docs",
"start": "esbuild docs/docs.tsx docs/docs.css --bundle --tsconfig=tsconfig-demo.json --servedir=docs --outdir=docs/react-animate-height",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig-esm.json → tsconfig.json
@@ -1,8 +1,8 @@
{
"extends": "./tsconfig-base.json",
"compilerOptions": {
"module": "esnext",
"module": "ES2020",
"outDir": "dist/esm",
"target": "esnext"
"target": "ES2015"
}
}

0 comments on commit edac80d

Please sign in to comment.