There is a file, called a.js:
a.js
class A { onShow() { console.log(\'on-show\') } foo() { console.log(\'foo\') } }