You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let pp = TypeScriptPreProcessor::new(TargetVersion::Es2020,true,false);
219
+
220
+
log_to_stderr(LevelFilter::Trace);
221
+
222
+
let pp = TypeScriptPreProcessor::new(TargetVersion::Es2020,true,true);
219
223
let inputs = vec![
220
224
Script::new(
221
225
"export_class_test.ts",
222
226
"function functWithLongName(abc) {return abc + 1;};export class /* hi */ MyClass {name: string; sum: number; constructor(name) {this.name = name; this.sum = functWithLongName(1);} getIt() {return (this.name + ' is gotten');}}",
223
227
),
224
228
Script::new(
225
229
"import_test.ts",
226
-
"import {MyClass} from 'export_class_test.ts'; \n{let b: Number = MyClass.quibus;}\n export function q(val: Number) {let mc = new MyClass(); return mc.sum;};",
230
+
"import {MyClass} from 'export_class_test.ts'; \n{let b: Number = MyClass.quibus;}\n export function q(val: Number) {let mc = new MyClass(); return mc.sum + mc.getIt();};",
227
231
),
228
232
Script::new(
229
233
"not_a_module.ts",
230
-
"async function test() {let m = await import('texport_class_test.ts'); let mc = new m.MyClass(); console.log(m.getIt());}",
234
+
"async function test() {let m = await import('export_class_test.ts'); let mc = new m.MyClass(); console.log(m.getIt());}",
0 commit comments