Skip to content

cannot resolve paths with extentions .min.js #90

Closed

Description

@misutkame

I believe it should be able to find paths that end with .min.js

Activity

  1. reggi commented on Feb 22, 2018

    @reggi

    You can currently do this by adding .min.js to extensions, this is not native require.resolve functionality.

    ➜  touch example.min.js
    ➜  node
    > require.resolve('./example.min')
    '/Users/treggi/Desktop/jest-example/example.min.js'
    > require.resolve('./example')
    Error: Cannot find module './example'
        at Function.Module._resolveFilename (module.js:542:15)
        at Function.resolve (internal/module.js:18:19)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions