Skip to content

Commit e4a2930

Browse files
authored
fix(webpack): Change NativeClass properties to enumerable (NativeScript#8813)
1 parent f826bef commit e4a2930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/webpack/transformers/ns-transform-native-classes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function (ctx: ts.TransformationContext) {
2222
return ts.createIdentifier(
2323
ts.transpileModule(node.getText().replace(/@NativeClass(\((.|\n)*?\))?/gm, ''), {
2424
compilerOptions: { noEmitHelpers: true, module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES5 },
25-
}).outputText
25+
}).outputText.replace(/(Object\.defineProperty\(.*?{.*?)(enumerable:\s*false)(.*?}\))/gs, '$1enumerable: true$3')
2626
);
2727
}
2828

0 commit comments

Comments
 (0)