Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Add ability to include the file extension when requiring modules. #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rehno-lindeque
Copy link

For example, instead of

require "foo/bar"

it is possible to write

require "foo/bar.js"

or

require "foo/bar.coffee"

I believe this behavior is compatible with node.js. (I ran into a problem with stitch where I had a module called adt.js. Using node require pulls in the package called adt.js, but with stitch I instead wanted to require the single file called adt.js that I stitched in).

Cheers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant