Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
Whats the equivalent of "import 'some-module';" in vite?

I have just converted my webpack based project to vite, most of the stuff is working fine except the places where the vue component is calling some js module globally via import statement.

// my-component.vue
<script>
import $ from 'jquery';
import 'jquery-resizable-dom';

export default() {
    name: 'mycomponent',
    created() {
        this.$refs.el.resizable();
    }
}
</script>

The above code is working fine in webpack version but its throwing error in vite:

el.resizable is not a function

How I can import a jquery module globally in vite env?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!