Skip to content

Conversation

adam-lynch
Copy link
Contributor

Ran into this problem myself. It makes sense why it wouldn't work but took me awhile to realise it so it's worth noting.

Doesn't work:

requireAppScript = (moduleName) -> require '../../' + moduleName

requireAppScript 'x'

Works:

requireAppScript = (moduleName) -> require '../../' + moduleName

requireAppScript 'x'
require '../../x'

Ran into this problem myself. It makes sense why it wouldn't work but took me awhile to realise it.

Doesn't work:
```coffeescript
requireAppScript = (moduleName) -> require '../../' + moduleName

requireAppScript 'x'
```

Works:
```coffeescript
requireAppScript = (moduleName) -> require '../../' + moduleName

requireAppScript 'x'
require '../../x'
```
@Raynos
Copy link

Raynos commented Aug 13, 2014

👍

@goto-bus-stop goto-bus-stop merged commit 583d523 into browserify:master Mar 21, 2018
@goto-bus-stop
Copy link
Member

thanks!

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

Successfully merging this pull request may close these issues.

3 participants