From cce07403277d909e30abc281223b123525b40464 Mon Sep 17 00:00:00 2001 From: machty Date: Fri, 12 Jul 2024 21:29:21 -0400 Subject: [PATCH] simplify esbuild script --- packages/vscode/scripts/build.mjs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/vscode/scripts/build.mjs b/packages/vscode/scripts/build.mjs index 7274fba8..f9b866bb 100644 --- a/packages/vscode/scripts/build.mjs +++ b/packages/vscode/scripts/build.mjs @@ -13,11 +13,6 @@ await build({ bundle: true, entryPoints: { 'dist/extension': require.resolve('../lib/src/extension.js'), - // 'out/extension': require.resolve('../src/extension.js'), - // 'out/language-server': require.resolve('@mdx-js/language-server'), - // 'node_modules/@mdx-js/typescript-plugin': require.resolve( - // '../../typescript-plugin/index.cjs' - // ) }, external: ['vscode'], logLevel: 'info', @@ -27,17 +22,4 @@ await build({ sourcemap: debug, target: 'node16', watch: watch, - plugins: [ - { - name: 'alias', - setup({ onResolve, resolve }) { - onResolve({ filter: /^(jsonc-parser)$/ }, ({ path, ...options }) => - resolve(require.resolve(path).replace(/\/umd\//, '/esm/'), options), - ); - onResolve({ filter: /\/umd\// }, ({ path, ...options }) => - resolve(path.replace(/\/umd\//, '/esm/'), options), - ); - }, - }, - ], });