fix: don't actually define anything

This commit is contained in:
cha0s 2019-04-25 00:00:34 -05:00
parent 0dc35ec7be
commit ffad67ca44

View File

@ -82,8 +82,7 @@ module.exports = function(source) {
const transformed = transformer ? transformer(className) : className;
// Import and register.
return [
`import {${transformed}} from '${importPath}';`,
`${registrar.function}(${transformed});`,
`${registrar.function}(require('${importPath}').${transformed});`,
].join('\n');
});
// Import trait registry first.