Skip to content

Commit 30b76cf

Browse files
committed
Use join instead of resolve and update path import
This fixes `pkg` bundling
1 parent 5b4baea commit 30b76cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/corePlugins.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fs from 'fs'
2-
import path from 'path'
2+
import * as path from 'path'
33
import postcss from 'postcss'
44
import createUtilityPlugin from './util/createUtilityPlugin'
55
import buildMediaQuery from './util/buildMediaQuery'
@@ -365,7 +365,7 @@ export let variantPlugins = {
365365
export let corePlugins = {
366366
preflight: ({ addBase }) => {
367367
let preflightStyles = postcss.parse(
368-
fs.readFileSync(path.resolve(__dirname, 'css/preflight.css'), 'utf8')
368+
fs.readFileSync(path.join(__dirname, './css/preflight.css'), 'utf8')
369369
)
370370

371371
addBase([

0 commit comments

Comments
 (0)