From 138d92ae5d0c38bcb7e3762ff2dd4d7ec6dc8310 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Zolesio Date: Wed, 3 Aug 2022 20:13:11 -0700 Subject: [PATCH] Change the globalThis of UMD package to allow nodejs to use it. --- History.md | 5 +++++ package.json | 2 +- webpack.config.js | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/History.md b/History.md index 63377bc5..ab51baf5 100644 --- a/History.md +++ b/History.md @@ -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 ================== diff --git a/package.json b/package.json index 66a89bb1..ff7963be 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.js b/webpack.config.js index 34fd219b..174d5c84 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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', }, });