Skip to content

Commit

Permalink
fix: use defineProperty for appending prop in storeName (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Mar 3, 2022
1 parent 403fa86 commit 96b7cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MagicString.js
Expand Up @@ -365,7 +365,7 @@ export default class MagicString {

if (storeName) {
const original = this.original.slice(start, end);
this.storedNames[original] = true;
Object.defineProperty(this.storedNames, original, { writable: true, value: true, enumerable: true });
}

const first = this.byStart[start];
Expand Down

0 comments on commit 96b7cd3

Please sign in to comment.