ember-css-modules 1.6.1 → 1.6.2
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/lib/htmlbars-plugin/index.js +12 -1
- package/package.json +3 -3
|
@@ -152,7 +152,18 @@ module.exports = class ClassTransformPlugin {
|
|
|
152
152
|
|
|
153
153
|
utils.pushAll(parts, this.localToPath(localClassAttr.value));
|
|
154
154
|
this.divide(parts, this.isGlimmer ? 'text' : 'string');
|
|
155
|
-
|
|
155
|
+
|
|
156
|
+
let newClassAttr = this.builders.attr('class', this.builders.concat(parts));
|
|
157
|
+
node.attributes.unshift(newClassAttr);
|
|
158
|
+
|
|
159
|
+
// In new-enough versions of Ember (>= 3.25 or so), we need to create a
|
|
160
|
+
// fake good-enough `loc` whose content will start with `class=` to avoid
|
|
161
|
+
// triggering https://github.com/emberjs/ember.js/issues/19392
|
|
162
|
+
if (typeof localClassAttr.loc.slice === 'function') {
|
|
163
|
+
newClassAttr.loc = localClassAttr.loc.slice({
|
|
164
|
+
skipStart: 'local-'.length,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
156
167
|
}
|
|
157
168
|
|
|
158
169
|
localToPath(node) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-css-modules",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "CSS Modules for ambitious applications",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "ember build",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"broccoli-plugin": "^1.3.1",
|
|
26
26
|
"console-ui": "^2.2.2",
|
|
27
27
|
"ember-ajax": "^3.1.0",
|
|
28
|
-
"ember-auto-import": "^
|
|
28
|
+
"ember-auto-import": "^2.4.0",
|
|
29
29
|
"ember-cli": "~3.4.1",
|
|
30
30
|
"ember-cli-addon-tests": "^0.11.0",
|
|
31
31
|
"ember-cli-dependency-checker": "^3.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"qunitjs": "^2.4.1",
|
|
57
57
|
"sinon": "^4.3.0",
|
|
58
58
|
"template-stuff": "link:tests/dummy/lib/template-stuff",
|
|
59
|
-
"webpack": "^
|
|
59
|
+
"webpack": "^5.70.0"
|
|
60
60
|
},
|
|
61
61
|
"keywords": [
|
|
62
62
|
"ember-addon",
|