fix: NativeClass transformer import

This commit is contained in:
Igor Randjelovic
2020-11-22 13:18:52 +01:00
parent fe0d6403a5
commit b29918f5a8

View File

@ -109,6 +109,8 @@ export default function (config: Config, env: IWebpackEnv): Config {
.use('ts-loader') .use('ts-loader')
.loader('ts-loader') .loader('ts-loader')
.options({ .options({
// todo: perhaps we can provide a default tsconfig
// and use that if the project doesn't have one?
// configFile: '', // configFile: '',
transpileOnly: true, transpileOnly: true,
allowTsInNodeModules: true, allowTsInNodeModules: true,
@ -118,7 +120,7 @@ export default function (config: Config, env: IWebpackEnv): Config {
}, },
getCustomTransformers() { getCustomTransformers() {
return { return {
before: [require('../transformers/NativeClass')], before: [require('../transformers/NativeClass').default],
}; };
}, },
}); });