fix(compiler): don't create watchers for attr mappings if no attr is specified

Closes #265