Skip to content

Improve import normalization #2

Description

@migerh

Currently the import normalization in lib/parseImports.js appends '.js' or '.jsx' and disregards any filename extensions that might already be specified. With module bundlers (e.g. webpack or Meteor's build system) also allowing to import static assets like css or text this needs to be improved.

  • Check the standard what filename extensions may be omitted, use that as a default
  • Add a configuration option, maybe something like Webpack's resolve.extensions config (See [1])

[1] https://webpack.github.io/docs/configuration.html#resolve-extensions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions