From d224b3d08b33c0e0ee561c22391d6abb6853217f Mon Sep 17 00:00:00 2001 From: Sarah Dayan Date: Tue, 28 Jul 2020 17:59:49 +0200 Subject: [PATCH] fix: define to avoid breakage when using it in the config file --- postcss.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postcss.config.js b/postcss.config.js index 300c9824..7818889a 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,5 +1,9 @@ /* eslint-disable import/no-commonjs */ +// When the configuration file refers to `window`, we need to shim it so it +// doesn't break when processed with Node during the build step. +window = global; + require('ignore-styles'); const postcssPresetEnv = require('postcss-preset-env'); const postcssInjectCssVariables = require('postcss-inject-css-variables');