Skip to content

Commit

Permalink
test(analyzer): add @babel/plugin-syntax-typescript
Browse files Browse the repository at this point in the history
If the TS syntax plugin is not loaded, the following scenarios fail, as the `import type` syntax is not understood:
- `lts-own`
- `release-own`
- `beta-own`
- `canary-own`
  • Loading branch information
buschtoens committed Jul 23, 2021
1 parent 0403341 commit 1440052
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 32 deletions.
71 changes: 40 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/ember-auto-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"walk-sync": "^0.3.3"
},
"devDependencies": {
"@babel/plugin-syntax-typescript": "^7.14.5",
"@types/babel__core": "^7.0.4",
"@types/babel__generator": "^7.0.1",
"@types/babel__template": "^7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-auto-import/ts/tests/analyzer-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Qmodule('analyzer', function (hooks) {
get babelOptions() {
babelOptionsWasAccessed = true;
return {
plugins: [require.resolve('../../babel-plugin')],
plugins: [require.resolve('@babel/plugin-syntax-typescript'), require.resolve('../../babel-plugin')],
};
},
babelMajorVersion: 7,
Expand Down

0 comments on commit 1440052

Please sign in to comment.