From 30b76cf472d9a5f63c9eb40869b55822b682f284 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Thu, 7 Oct 2021 12:49:32 +0100 Subject: [PATCH] Use `join` instead of `resolve` and update `path` import This fixes `pkg` bundling --- src/corePlugins.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index 5c16b77ba..d32038d56 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1,5 +1,5 @@ import fs from 'fs' -import path from 'path' +import * as path from 'path' import postcss from 'postcss' import createUtilityPlugin from './util/createUtilityPlugin' import buildMediaQuery from './util/buildMediaQuery' @@ -365,7 +365,7 @@ export let variantPlugins = { export let corePlugins = { preflight: ({ addBase }) => { let preflightStyles = postcss.parse( - fs.readFileSync(path.resolve(__dirname, 'css/preflight.css'), 'utf8') + fs.readFileSync(path.join(__dirname, './css/preflight.css'), 'utf8') ) addBase([