Skip to content

Commit

Permalink
Merge pull request #353 from babel/rwjblue-custom-plugins-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue authored Jun 8, 2020
2 parents 58c2b87 + 590b008 commit 5f18714
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let app = new EmberApp({
'transform-regenerator',
],
plugins: [
'transform-object-rest-spread'
require.resolve('transform-object-rest-spread')
]
}
});
Expand Down Expand Up @@ -136,7 +136,7 @@ rest/spread syntax, you would do something like this in an app:
// ember-cli-build.js
let app = new EmberApp(defaults, {
babel: {
plugins: ['transform-object-rest-spread']
plugins: [require.resolve('transform-object-rest-spread')]
}
});
```
Expand All @@ -146,7 +146,7 @@ In an engine:
// index.js
module.exports = EngineAddon.extend({
babel: {
plugins: ['transform-object-rest-spread']
plugins: [require.resolve('transform-object-rest-spread')]
}
});
```
Expand All @@ -157,7 +157,7 @@ In an addon:
module.exports = {
options: {
babel: {
plugins: ['transform-object-rest-spread']
plugins: [require.resolve('transform-object-rest-spread')]
}
}
};
Expand Down

0 comments on commit 5f18714

Please sign in to comment.