Hello again Meteor people,
I’m trying to create a single NPM module that contains both Meteor server-side and client-side artifacts. The client-side stuff uses React.
I’m not sure if it is advisable or even possible.
If I do …
cd node_modules
meteor npm link ../.pkgs/my_pkg
… I get this error …
SyntaxError: src/client/components/_collection.jsx: Unexpected token (4:2)
2 |
3 | export default ({collection}) => (
> 4 | <div>
| ^
5 | <h3>Widgets list</h3>
6 | <ul data-cuke="items-list">
7 | {collection.map(record => (
Where can I learn about the right way to do this? How many right ways are there?
Does there exist a tutorial or example I can work from?