Topic: Transpiler with quick-start installation
Spanners pro asked 6 years ago
Jakub Strebeyko staff answered 6 years ago
import {nameOfWhatYouWant} from 'whateverNodeModuleInNode_ModulesFolder';Whenever you compile for development (depending on how the package was built it could be yarn / npm start or yarn / npm serve) or for production (usually yarn/npm build), webpack transpiles the whole project and its dependencies with respect to what and where has been imported. It does so, so you don't have to - node_modules shall be included into the final build only in extent they are used inside the project. In other words, in the solution webpack compiles not only the project, but the mdbvue module as well, what I guess makes sense in case one wants to streamline and change all of the package's components. Even then, it seems a rather inefficient technique to have it all be 'digested' by webpack every time. Could you perhaps provide some code with explanation of what you want to do / change in MDBVue? With Best Regards, Kuba
Spanners pro answered 6 years ago
Jakub Strebeyko staff answered 6 years ago
/src/components/Button.vue
) not as a dependency and this is where you are changing things, then the compiler should be just fine with doing its job automatically. The solution suggests including `mdbvue`, here added as an external module, into the webpack workflow, which would be a relatively rare use-case. Anyway, happy to know it helped with the IE issue.
Best regards,
Kuba
Spanners pro answered 6 years ago
resolve('node_modules/mdbvue/src')to the 'babel-loader' include rule. Not sure if this is the proper way to do it though, and whether you would expect to have to do this? If so, maybe the quick-start instructions could be updated to reflect this? Thanks, Span.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Vue
- MDB Version: 4.6.0
- Device: PC
- Browser: IE11
- OS: Windows
- Provided sample code: No
- Provided link: Yes