Shopify / sprockets-commoner

Use Babel in Sprockets to compile JavaScript modules for the browser
MIT License
182 stars 22 forks source link

Follow Node.js dependency resolve specification #37

Closed Novtopro closed 7 years ago

Novtopro commented 7 years ago

Say, I have files like this

├── authentication
│   └── index.js
├── authentication.js

In top most authentication.js file, I added line

import { init } from './authentication'

but the index.js file does not used.

bouk commented 7 years ago

The specification says that files are loaded before directories https://nodejs.org/api/modules.html#modules_all_together