Requiring tags files work properly if I use require('./tags/buddy-list.tag');. The JS output properly sets up a riot.tag(...). However, when I try to use require.context('./tags', true, /\.tag$/), what I get in the JS output is this instead:
var map = {
"./baron-chat.tag": 13,
"./buddy-list.tag": 14
};
It looks like the tags aren't getting compiled properly. Any idea how I can get require.context working?
Requiring tags files work properly if I use
require('./tags/buddy-list.tag');
. The JS output properly sets up ariot.tag(...)
. However, when I try to userequire.context('./tags', true, /\.tag$/)
, what I get in the JS output is this instead:It looks like the tags aren't getting compiled properly. Any idea how I can get
require.context
working?