We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f8ba47 commit 91f55b0Copy full SHA for 91f55b0
packages/ember-css-modules/lib/htmlbars-plugin/utils.js
@@ -21,7 +21,11 @@ function updateStringValue(node, updater) {
21
node.chars = updater(node.chars);
22
} else if (node.type === 'StringLiteral') {
23
node.value = updater(node.value);
24
- setValue(node, updater(getValue(node)));
+ // Avoid `original` deprecation in Ember 5.9+
25
+ let originalDesc = Object.getOwnPropertyDescriptor(node, 'original');
26
+ if (originalDesc && originalDesc.value) {
27
+ node.original = updater(node.original);
28
+ }
29
} else {
30
throw new Error('Unknown node type ' + node.type + ' (not a string?)');
31
}
0 commit comments