![]() ![]() ![]() Open package.json and make sure “main” points to your source javascript file eg:īellow “scripts” in package.json add the following line: Npm install -save install other libraries/packages you might need) Make and name a new folder, then open it.Ĭtrl + right-click, select “Open command window here” and type + enter: Long story short, I found redemption in esbuild, a rather new bundler.įor anyone interested, here is the (tested) procedure: Note the irony: It requires either node version 10, 12, or >=14 but I had… 13.14.0 and so it didn’t work (what was I thinking - a bad-luck number? No way, only even ones! ) …to be continued, more episodes in the land of sloppiness, quasi-freedom and industrial tracking/spying. So, webpack ended where it deserved along with the rest: on the recycle bin. So neither webpack can do the job it claims to do by itself, and even worse, it was embedding that library on the final code including a MIT license line, even though I used -save-dev when I installed lodash.ĭo I want more external dependencies in my proprietary code? Nope. So I was happy to see that their webpage was well designed and user friendly, with step-by-step instructions.Īt some point though, I was told that I had to install an external library, lodash. Next, I decided to try the first (possibly) bundler of the gang: webpack. ![]() Since I don’t want to ask for permissions or be tracked, rollup ended abandoned and uninstalled too. So I did, and midwise, I was asked to …login to git as a mandatory step! I looked at the rollup example and saw that it is ‘mandatory’ to install a ‘name resolver’ plugin via npm. So, a module bundler cannot resolve …module dependencies by itself! Is this a joke or what? Surprisingly, I got the following messages: So, Vite ended abandoned and uninstalled. I downloaded a rollup example where it fully worked. I tried to install Vite that you suggested, and npm reported 5 vulnerabilities, of which 3 of high importance and it was unable to ‘fix’ them, so I was told that I should …remove them manually (remove what?)Īlso, intellisense started to work, but only partially, as it was providing only a fraction of the available information. Thanks, that convinced me that it 's because I’m not using a bundler… ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |