We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d10cdb0 commit 5d01843Copy full SHA for 5d01843
packages/@lwc/rollup-plugin/src/index.ts
@@ -328,7 +328,9 @@ export default function lwc(pluginOptions: RollupLwcOptions = {}): Plugin {
328
// Specifier will only exist for modules with alias paths.
329
// Otherwise, use the file directory structure to resolve namespace and name.
330
const [namespace, name] =
331
- specifier?.split('/') ?? path.dirname(filename).split(path.sep).slice(-2);
+ // Note we do not need to use path.sep here because this filename contains
332
+ // a '/' regardless of Windows vs Unix, since it comes from the Rollup `id`
333
+ specifier?.split('/') ?? path.dirname(filename).split('/').slice(-2);
334
335
const apiVersionToUse = getAPIVersionFromNumber(apiVersion);
336
0 commit comments