Skip to content

Feature: Short form of import package #45897

Closed
@ggdream

Description

@ggdream
  • Dart VM

e.g.

  • For Ts/Js, if had a path of router/index.ts, we will call the package by import some from 'router', rather than import some from 'router/index.ts'.

  • Python, it has __init__, supports it.

In Dart, because there is no such mechanism, it makes the guide packet path redundant. Do you have any relevant plans? If not, what are the reasons?

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-duplicateClosed in favor of an existing report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions