Skip to content

auto-resolve dependencies that only import from a directory #907

@thescientist13

Description

@thescientist13

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

A part of #820 / #832, wanted to capture a follow up issue to capture an enhancement for dependencies that assume directory level index.js files will auto resolve and are not captured in an export map

import { foo } from 'some-package/lib';  // where it _actually_ exists at  'some-package/lib/index.js'

Details

Discovered this as part of testing a Stencil integration and found this particular scenario happening. @stencil/core in this case has an entry point ultimately points to a file with no file extension.

import { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';

The directory does have an index.js so there is that to use / check for, as well as a package.json, so seems like we should be able to do something with either of those.

Should also file this with the Stencil team as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIalpha.0enhancementImprove something existing (e.g. no docs, new APIs, etc)v0.30.0

    Type

    No type

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions