Commit 139f6f6
fix: export region should support es6 class and block openings
Currently, the following syntax results in an error on the closing
brace:
```js
export default {
} // <-- error here
export default class Modules extends Base {
} // <-- error here
```
This patch adds jsBlock to be included in a jsExportContainer region
so that region matching will continue to the end of the class or block.1 parent 2f5a9ef commit 139f6f6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments