From 0638f6446e94f02032f51740cc5201ca4d98fcdf Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 13 Jan 2023 23:48:40 +0100 Subject: [PATCH] fix(externals): normalize `inline` and `external` windows paths --- src/rollup/plugins/externals.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rollup/plugins/externals.ts b/src/rollup/plugins/externals.ts index 1b018a1411..6b1c57e8dd 100644 --- a/src/rollup/plugins/externals.ts +++ b/src/rollup/plugins/externals.ts @@ -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) {