ember-vite-hmr 1.4.12 → 1.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/babel-plugin.js +5 -0
- package/package.json +2 -2
package/dist/lib/babel-plugin.js
CHANGED
|
@@ -122,6 +122,9 @@ class HotAstProcessor {
|
|
|
122
122
|
return babelProgram.body.find(b => b.type === 'ImportDeclaration' && b.specifiers.some(s => s.local.name === specifier));
|
|
123
123
|
};
|
|
124
124
|
const findBlockParams = function (expression, p) {
|
|
125
|
+
if (p.node.type === 'Template') {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
125
128
|
if (p.node &&
|
|
126
129
|
p.node.type === 'BlockStatement' &&
|
|
127
130
|
p.node.program.blockParams.includes(expression)) {
|
|
@@ -157,6 +160,7 @@ class HotAstProcessor {
|
|
|
157
160
|
if (node.original === 'helper' ||
|
|
158
161
|
node.original === 'component' ||
|
|
159
162
|
node.original === 'modifier') {
|
|
163
|
+
(node.original);
|
|
160
164
|
const parent = p.parentNode;
|
|
161
165
|
if (typeof parent.params[0].original !== 'string') {
|
|
162
166
|
return;
|
|
@@ -192,6 +196,7 @@ class HotAstProcessor {
|
|
|
192
196
|
if (importVar) {
|
|
193
197
|
if (findImport(original)) {
|
|
194
198
|
element.tag = `${importVar}.${original}`;
|
|
199
|
+
p.node.tag = element.tag;
|
|
195
200
|
importBindings.add(original);
|
|
196
201
|
}
|
|
197
202
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-vite-hmr",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.13",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ember-addon"
|
|
6
6
|
],
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"babel-import-util": "2.0.3",
|
|
90
90
|
"concurrently": "^8.0.1",
|
|
91
91
|
"ember-resolver": "^11.0.1",
|
|
92
|
-
"ember-source": "^5.
|
|
92
|
+
"ember-source": "^5.10.1",
|
|
93
93
|
"ember-template-lint": "^5.11.2",
|
|
94
94
|
"eslint": "^8.33.0",
|
|
95
95
|
"eslint-config-prettier": "^9.0.0",
|