diff --git a/src/server/rollup.config.js b/src/server/rollup.config.js index 5450949d..5087748f 100644 --- a/src/server/rollup.config.js +++ b/src/server/rollup.config.js @@ -1,10 +1,11 @@ +import { cwd } from 'node:process'; import { rollupPluginHTML as html } from '@web/rollup-plugin-html'; import { join } from 'path'; import { nodeResolve } from '@rollup/plugin-node-resolve'; import { PATHS } from './visual-diff-plugin.js'; export default { - input: join(PATHS.VDIFF_ROOT, PATHS.REPORT_ROOT, './temp/index.html'), + input: join(cwd(), PATHS.VDIFF_ROOT, PATHS.REPORT_ROOT, './temp/index.html'), output: { dir: join(PATHS.VDIFF_ROOT, PATHS.REPORT_ROOT) },