@embroider/addon-dev
Advanced tools
Changelog
@embroider/addon-dev
2.0.0 -> 3.0.0
BREAKING: @embroider/addon-template/template-transform-plugin
is removed
because babel-plugin-ember-template-compilation >= 2.0.0
now directly supports
source-to-source transformation.
This plugin was used to run any custom AST transformations on your templates before publishing. To replace it:
Add babel-plugin-ember-template-compilation@^2.0.0
as a devDependency.
Make sure you also have a devDependency on ember-source
, so we have a template compiler.
Update the babel config like:
plugins: [
- [
- '@embroider/addon-dev/template-transform-plugin',
- {
- astTransforms: [
- ...yourPluginsHere
- ]
- }
- ],
+ [
+ 'babel-plugin-ember-template-compilation',
+ {
+ compilerPath: 'ember-source/dist/ember-template-compiler',
+ targetFormat: 'hbs',
+ transforms: [
+ ...yourPluginsHere
+ ]
+ }
+ ]
]
See https://github.com/emberjs/babel-plugin-ember-template-compilation for the complete docs on these options.