File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ module.exports = {
30
30
loader : 'babel-loader-8' ,
31
31
options : {
32
32
plugins : [
33
+ // Transpile class properties
34
+ // @see https://github.com/typed-ember/ember-cli-typescript/blob/b2e75abc98beefe635b6cfd8808c887813acb44e/ts/addon.ts#L99
35
+ require . resolve ( '@babel/plugin-proposal-class-properties' ) ,
36
+
33
37
// Transpile new syntax, which is apparently not yet handled by
34
38
// `@babel/preset-env`.
35
39
// @see https://github.com/typed-ember/ember-cli-typescript/blob/b2e75abc98beefe635b6cfd8808c887813acb44e/ts/addon.ts#L89-L94
Original file line number Diff line number Diff line change 16
16
"lint:js" : " eslint --ext ts,js ."
17
17
},
18
18
"dependencies" : {
19
+ "@babel/plugin-proposal-class-properties" : " ^7.8.3" ,
19
20
"@babel/plugin-proposal-nullish-coalescing-operator" : " ^7.8.3" ,
20
21
"@babel/plugin-proposal-optional-chaining" : " ^7.8.3" ,
21
22
"@babel/preset-env" : " ^7.8.4" ,
Original file line number Diff line number Diff line change
1
+ export class Foo {
2
+ bar = false ;
3
+ }
4
+
1
5
const foo = { bar : { baz : undefined } } ;
2
6
3
7
export const works = foo . bar ?. baz ?? ( ( ) => true ) ;
You can’t perform that action at this time.
0 commit comments