Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Allow require without .default #13

Closed
marshallswain opened this issue Nov 22, 2015 · 4 comments
Closed

Allow require without .default #13

marshallswain opened this issue Nov 22, 2015 · 4 comments
Milestone

Comments

@marshallswain
Copy link
Member

export default module.exports = xyz; as per #12

@marshallswain marshallswain added this to the 1.0 release milestone Nov 22, 2015
@marshallswain
Copy link
Member Author

@daffl
Copy link
Member

daffl commented Nov 24, 2015

It should probably use the Babel plugin (see feathersjs-ecosystem/feathers-knex#17)

@marshallswain
Copy link
Member Author

Looks like using require('module').default is the new correct way to do this when using Babel. http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default

Closing

@ekryski
Copy link
Member

ekryski commented Dec 28, 2015

When you are not using ES6, yes.

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

No branches or pull requests

3 participants