cancel
Showing results for 
Search instead for 
Did you mean: 

Devgurus Discussion

abdulaleem
Journeyman III

Why VS Code use a custom AMD loader instead of popular bundler?

I'm reading VS Code  source code and found that VS Code is using a custom AMD loader  (source code)  instead of popular bundler like Webpack? It is said vscode-loader is An universal Asynchronous Module Definition (AMD) Loader developed primarily to load VSCode's sources.

Is there some architecture design considerations, like performance or bundle size, behind this? site

update: There is also a similar question without an answer in VS Code issues: Why doesn't VSCode use require.js directly? 

update: I read the source code of vscode-loader. It supports multiple environment(node, web, electron and web worker) and can switch different implementation automatically. Maybe this is why the vscode team wrote vscode-loader.

0 Likes
1 Reply
blazek
Volunteer Moderator

0 Likes