Skip to content

Commit

Permalink
fix(externals): normalize inline and external windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 13, 2023
1 parent 2ce4edb commit 0638f64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rollup/plugins/externals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export function externals(opts: NodeExternalsOptions): Plugin {
return resolved;
};

// Normalize options
opts.inline = (opts.inline || []).map((p) => normalize(p));
opts.external = (opts.external || []).map((p) => normalize(p));

return {
name: "node-externals",
async resolveId(originalId, importer, options) {
Expand Down

0 comments on commit 0638f64

Please sign in to comment.