Skip to content

Commit

Permalink
fix: disable dot notation to avoid the renaming for the prop during b…
Browse files Browse the repository at this point in the history
…uild/minification
  • Loading branch information
hardikpthv committed Nov 6, 2024
1 parent 303a139 commit c020b41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,9 @@ export const ValidateMixinImplementation = superclass =>
}

for (const validatorToSetup of this._allValidators) {
if (/** @type {typeof Validator} */ validatorToSetup._$isValidator$ === undefined) {
// disable dot notation to avoid the renaming for the prop during build/minification
// eslint-disable-next-line dot-notation
if (/** @type {typeof Validator} */ validatorToSetup['_$isValidator$'] === undefined) {
// throws in constructor are not visible to end user so we do both
const errorType = Array.isArray(validatorToSetup) ? 'array' : typeof validatorToSetup;
const errorMessage = `Validators array only accepts class instances of Validator. Type "${errorType}" found. This may be caused by having multiple installations of "@lion/ui/form-core.js".`;
Expand Down

0 comments on commit c020b41

Please sign in to comment.