Skip to content

Commit

Permalink
simplify esbuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
machty committed Jul 13, 2024
1 parent 72600f2 commit cce0740
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/vscode/scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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),
);
},
},
],
});

0 comments on commit cce0740

Please sign in to comment.