panes icon indicating copy to clipboard operation
panes copied to clipboard

[BUG] Vite uglify modules names

Open bazuka5801 opened this issue 1 year ago • 2 comments

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:

  1. 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.

bazuka5801 avatar Jan 25 '24 15:01 bazuka5801

Thank you @bazuka5801 Maybe you have some suggestions here?

roman-rr avatar Jan 25 '24 15:01 roman-rr

Thank you @bazuka5801 Maybe you have some suggestions here?

https://stackoverflow.com/a/62471619

bazuka5801 avatar Jan 25 '24 16:01 bazuka5801