mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(webpack): Change NativeClass properties to enumerable (#8813)
This commit is contained in:
@@ -22,7 +22,7 @@ export default function (ctx: ts.TransformationContext) {
|
||||
return ts.createIdentifier(
|
||||
ts.transpileModule(node.getText().replace(/@NativeClass(\((.|\n)*?\))?/gm, ''), {
|
||||
compilerOptions: { noEmitHelpers: true, module: ts.ModuleKind.CommonJS, target: ts.ScriptTarget.ES5 },
|
||||
}).outputText
|
||||
}).outputText.replace(/(Object\.defineProperty\(.*?{.*?)(enumerable:\s*false)(.*?}\))/gs, '$1enumerable: true$3')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user