Closed
Description
Summary
Double typeof
keyword causes require is not defined
bug
Steps to Reproduce
- Install Preline on a fresh Laravel project using this guide.
- Build the asset using
npm run build
orbun run build
. - See the error such as screenshot below:


My current workaround is downgrading to 2.4.0
or editing the package file to remove the extra typeof
.
Please let me know if this is intended, or a typo, since I'm not an expert into JavaScript.
Demo Link
https://github.com/NikarashiHatsu/preline-typeof-bug
Expected Behavior
There are no require is not defined
error on the console.
Actual Behavior
The error require is not defined
is exists on compiled asset of Preline.
Screenshots

