Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump babel-plugin-ember-template-compilation from 2.2.2 to 2.2.5 #20

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions pnpm-lock.yaml

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

10 changes: 5 additions & 5 deletions tests/babel-plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,16 @@ describe('convert template with hot reload helpers', () => {
myhelper = _init_myhelper(this, myhelper);
}()
const T = setComponentTemplate(precompileTemplate("\\n <template__imports__.Other />\\n ", {
strictMode: true,
scope: () => ({
template__imports__
}),
strictMode: true
})
}), templateOnly());
export default setComponentTemplate(precompileTemplate("\\n {{(template__imports__.myhelper)}}\\n {{component template__imports__.SomeComponent}}\\n <template__imports__.SomeComponent />\\n <template__imports__.NamedComponent />\\n ", {
strictMode: true,
scope: () => ({
template__imports__
}),
strictMode: true
})
}), templateOnly());
if (import.meta.hot) {
import.meta.hot.accept('my-components', module => template__imports__.NamedComponent = module['NamedComponent']);
Expand Down Expand Up @@ -237,8 +237,8 @@ describe('convert template with hot reload helpers', () => {
function _applyDecs2203R(e, t, r) { return (_applyDecs2203R = applyDecs2203RFactory())(e, t, r); }
import SomeComponent, { NamedComponent, Other } from 'my-components';
import myhelper from 'my-helpers';
import { createTemplateFactory } from "@ember/template-factory";
import { setComponentTemplate } from "@ember/component";
import { createTemplateFactory } from "@ember/template-factory";
import templateOnly from "@ember/component/template-only";
import { tracked } from "@glimmer/tracking";
let template__imports__ = null;
Expand Down
Loading