meteor / react-packages

Meteor packages for a great React developer experience
http://guide.meteor.com/react.html
Other
573 stars 158 forks source link

Question: Can we require files? #158

Closed SylarRuby closed 8 years ago

SylarRuby commented 8 years ago

Can we do something like this: const Foo = require('./data/foo.js');

stubailo commented 8 years ago

This will come as part of Meteor 1.3. Currently Meteor's build system relies on app and package scoped variables, and doesn't have a concept of modules or requiring. See here: https://github.com/meteor/meteor/pull/5475