Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Vite uglify modules names #232

Open
bazuka5801 opened this issue Jan 25, 2024 · 2 comments
Open

[BUG] Vite uglify modules names #232

bazuka5801 opened this issue Jan 25, 2024 · 2 comments
Assignees

Comments

@bazuka5801
Copy link

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.

@roman-rr roman-rr self-assigned this Jan 25, 2024
@roman-rr
Copy link
Collaborator

Thank you @bazuka5801
Maybe you have some suggestions here?

@bazuka5801
Copy link
Author

Thank you @bazuka5801 Maybe you have some suggestions here?

https://stackoverflow.com/a/62471619

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants