Hey guys,
I’ve encountered a problem with the load order using api.addFiles in package.js files.
// This works as expected
api.addFiles([
'client/foobar.html',
'client/foobar.js',
], ['client']);
// This throws an Error: "TypeError: Template.foobar is undefined"
api.addFiles([
'client/foobar.js',
'client/foobar.html',
], ['client']);
I’ve made a example repo here: https://github.com/illmat/packageAddFilesBug.
It’s not a big deal, but it should be either fixed or mentioned in the docs.