Closed kollster closed 1 year ago
When bundling fit-ui into strict es modules (e.g. using Vite) an error is thrown that fit-ui is using the reserved keyword interface.
interface
See MDN entry on reserved words: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#future_reserved_words
The keyword interface is used in the following places:
https://github.com/Jemt/Fit.UI/blob/fca144f9d6fca2c23de43bcab8e4cc53a4abd16e/Controls/Dialog/Dialog.js#L1463
https://github.com/Jemt/Fit.UI/blob/fca144f9d6fca2c23de43bcab8e4cc53a4abd16e/Controls/Dialog/Dialog.js#L1495
https://github.com/Jemt/Fit.UI/blob/fca144f9d6fca2c23de43bcab8e4cc53a4abd16e/Controls/Dialog/Dialog.js#L1574
The issue can be resolved by renaming var interface to const api (const because the variable is not reassigned).
var interface
const api
Thanks for reporting - the bug has been confirmed and will be fixed with the next release.
Fixed and published as NPM package version 2.12.5
When bundling fit-ui into strict es modules (e.g. using Vite) an error is thrown that fit-ui is using the reserved keyword
interface
.See MDN entry on reserved words: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#future_reserved_words
The keyword
interface
is used in the following places:https://github.com/Jemt/Fit.UI/blob/fca144f9d6fca2c23de43bcab8e4cc53a4abd16e/Controls/Dialog/Dialog.js#L1463
https://github.com/Jemt/Fit.UI/blob/fca144f9d6fca2c23de43bcab8e4cc53a4abd16e/Controls/Dialog/Dialog.js#L1495
https://github.com/Jemt/Fit.UI/blob/fca144f9d6fca2c23de43bcab8e4cc53a4abd16e/Controls/Dialog/Dialog.js#L1574
The issue can be resolved by renaming
var interface
toconst api
(const because the variable is not reassigned).