Skip to content

Commit

Permalink
Don't extract pipelines from entry specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Binns-Smith committed Nov 14, 2019
1 parent 2e1e056 commit 449490b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/core/src/ResolverRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ export default class ResolverRunner {
let pipeline;
let filePath;
let validPipelines = new Set(this.config.getNamedPipelines());
if (dependency.moduleSpecifier.includes(':')) {
if (
// Don't consider absolute paths. Absolute paths are only supported for entries,
// and include e.g. `C:\` on Windows, conflicting with pipelines.
!path.isAbsolute(dependency.moduleSpecifier) &&
dependency.moduleSpecifier.includes(':')
) {
[pipeline, filePath] = dependency.moduleSpecifier.split(':');
if (!validPipelines.has(pipeline)) {
if (dep.isURL) {
Expand Down

0 comments on commit 449490b

Please sign in to comment.