diff --git a/package.json b/package.json index 0f9c658f..ecd87ca2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@elderjs/elderjs", - "version": "1.1.6", + "version": "1.1.7", "main": "./build/index.js", "types": "./build/index.d.ts", "engineStrict": true, diff --git a/src/utils/rollupPluginHandleCss.ts b/src/utils/rollupPluginHandleCss.ts index a00fda20..e54cddf5 100644 --- a/src/utils/rollupPluginHandleCss.ts +++ b/src/utils/rollupPluginHandleCss.ts @@ -27,7 +27,7 @@ export default function elderjsHandleCss({ rootDir }) { const isCss = (id) => path.parse(id).ext === '.css'; const relDir = (str) => { - return ssrOutputPath(str.replace(`${rootDir}/`, '')); + return ssrOutputPath(str.replace(`${rootDir}${path.sep}`, '')); }; return {