Skip to content

Commit

Permalink
add babel typescript transform
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Sep 17, 2024
1 parent 9264532 commit b9b48b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/vite/src/optimize-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ export function optimizeDeps(): OptimizeDeps {
return {
exclude: ['@embroider/macros'],
extensions: ['.hbs', '.gjs', '.gts'],
loader: {
'.gts': 'ts',
},
esbuildOptions: {
plugins: [esBuildResolver()],
},
Expand Down
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions tests/ts-app-template/babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { babelCompatSupport, templateCompatSupport } = require('@embroider/compat

module.exports = {
plugins: [
['@babel/plugin-transform-typescript'],
[
'babel-plugin-ember-template-compilation',
{
Expand Down
1 change: 1 addition & 0 deletions tests/ts-app-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"devDependencies": {
"@babel/core": "^7.22.20",
"@babel/plugin-transform-typescript": "^7.21.3",
"@babel/eslint-parser": "^7.21.3",
"@babel/plugin-proposal-decorators": "^7.21.0",
"@ember/optional-features": "^2.0.0",
Expand Down

0 comments on commit b9b48b5

Please sign in to comment.