panes
panes copied to clipboard
[BUG] Vite uglify modules names
Describe the bug Vite uglify modules names, I wrote workaround for finding module.
let newPaneHeight =
(await pane.modules.fitHeight.getPaneFitHeight()) as number
let fitHeightModule = pane.modules.fitHeight
if (!fitHeightModule) {
for (const key in pane.modules)
if (typeof pane.modules[key].calcFitHeight === 'function') {
fitHeightModule = pane.modules[key]
}
}
let newPaneHeight = (await fitHeightModule.getPaneFitHeight()) as number
To Reproduce Steps to reproduce the behavior:
- vite build Expected behavior modules not uglify
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Thank you @bazuka5801 Maybe you have some suggestions here?
Thank you @bazuka5801 Maybe you have some suggestions here?
https://stackoverflow.com/a/62471619