Skip to content

Commit

Permalink
Release 4.0.1: Change the globalThis of UMD package to allow nodejs t…
Browse files Browse the repository at this point in the history
…o use it. (#33)

Co-authored-by: Jean-Philippe Zolesio <[email protected]>
  • Loading branch information
holblin and Jean-Philippe Zolesio authored Aug 4, 2022
1 parent 8b8e8c6 commit 80d553b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
4.0.1 / 2022-08-03
==================

* Change globalThis configuration for webpack so UMD module could be used in nodejs (jest-dom)

4.0.0 / 2022-06-09
==================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/css-tools",
"version": "4.0.0",
"version": "4.0.1",
"description": "CSS parser / stringifier",
"main": "dist/umd/cssTools.js",
"module": "dist/cjs/cssTools.js",
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const umd = Object.assign({}, baseConfig, {
libraryTarget: 'umd',
path: path.resolve(__dirname, 'dist/umd'),
clean: process.env.NODE_ENV === 'prod',
globalObject: 'this',
},
});

Expand Down

0 comments on commit 80d553b

Please sign in to comment.