Fix issue with loading/resolving .pnp.cjs for debugging

issue/311
Kelvin Schoofs 3 years ago
parent b821bae74d
commit c121647485

@ -9,7 +9,7 @@ export function setDebug(debug: boolean) {
console.warn(`[vscode-sshfs] Debug mode set to ${debug}`);
DEBUG = debug;
if (!debug) return;
try { require('../.pnp.cjs').setup(); } catch (e) {
try { require('.pnp.cjs').setup(); } catch (e) {
console.warn('Could not set up .pnp.cjs:', e);
}
try { require('source-map-support').install(); } catch (e) {

@ -66,6 +66,7 @@ const config = {
externals: {
vscode: 'commonjs vscode',
request: 'commonjs request',
'.pnp.cjs': 'commonjs ../.pnp.cjs',
'source-map-support': 'commonjs source-map-support',
},
resolve: {

Loading…
Cancel
Save