furudean / vscode-renpy-warp

Launch and sync your Ren'Py game at the current line in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=PaisleySoftworks.renpyWarp
MIT License
3 stars 2 forks source link

Use ESM #34

Closed furudean closed 4 months ago

furudean commented 4 months ago

Packages used in this repository have ditched node's require() support, which prevents us from upgrading some of them.

require() is what gets used under the hood after the typescript code is transpiled into javascript. I remember reading that VSCode extensions don't actually support ESM natively yet but I can't find this piece of literature now. If I find it I'll drop it here

furudean commented 4 months ago

Depends on https://github.com/microsoft/vscode/issues/130367

Looks like it's technically possible, but you have to bundle as commonjs first, which I don't really want to do. So complete upstream support is a must