Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Do the entirety of the <template> transform in rollup. #6

Merged
merged 8 commits into from
Mar 16, 2023
Prev Previous commit
Next Next commit
Add changeset and Readme
NullVoxPopuli committed Mar 15, 2023
commit fe9f110f2f6c6af6daa926ed4b9db32ec6fc2c3d
6 changes: 6 additions & 0 deletions .changeset/blue-coats-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"rollup-plugin-glimmer-template-tag": minor
---

The entirety of the `<template>` transform is done in rollup.
Now folks don't need to remember to configure babel _in addition_ to the existing needed rollup config.
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -52,24 +52,6 @@ For `gjs` files, the next line would be to run the babel plugin, which uses the
config we extended earlier and transpiles the intermediate format into the final
`js` files.

### Babel

Add the `ember-template-imports` babel plugin to your babel config:

```diff
'use strict';

module.exports = {
plugins: [
+ 'ember-template-imports/src/babel-plugin',
'@embroider/addon-dev/template-colocation-plugin',
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-class-properties'
]
};
```


### Configure `rollup-plugin-ts` (TS Only)

For typescript, a config change is required to allow the transpilation to happen: