Skip to content

Commit

Permalink
setze basedir für resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
hmt committed Nov 28, 2020
1 parent 0807a06 commit f133db5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Dokument.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
console.log("rollup starten...");
const options = {
source: join($configData.reports, args.repo, args.file),
basedir: join($configData.reports, args.repo),
dest: join($configData.userData),
debug: $configData.debug,
write: $configData.write,
Expand Down
8 changes: 7 additions & 1 deletion src/rollup_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ class RollupBuild {
dev: options.debug
}
}),
resolve({ preferBuiltins: false, browser: true }),
resolve({
preferBuiltins: false,
browser: true,
customResolveOptions: {
basedir: options.basedir
}
}),
commonjs(),
]
}
Expand Down

0 comments on commit f133db5

Please sign in to comment.