Skip to content

Commit

Permalink
Try decorators transform
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 20, 2023
1 parent 3c529d3 commit 6dc8ba7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ module.exports = function (defaults) {
// Add options here
'ember-cli-babel': {
enableTypeScriptTransform: true,
disableDecoratorTransforms: true,
},
babel: {
plugins: [
// add the new transform.
[
require.resolve('decorator-transforms'),
{
runtime: {
import: require.resolve('decorator-transforms/runtime'),
},
},
],
],
},
});

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"dependencies": {
"@universal-ember/preem": "^0.1.7",
"chart.js": "^4.4.0",
"decorator-transforms": "^1.0.0",
"ember-modifier": "^4.1.0",
"ember-primitives": "^0.10.1",
"ember-resources": "^6.4.2",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 6dc8ba7

Please sign in to comment.