File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
import buildTsPlugin from '@zardoy/vscode-utils/build/buildTypescriptPlugin.js'
3
3
import { build , analyzeMetafile } from 'esbuild'
4
4
5
- build ( {
6
- // bundle: true,
5
+ await build ( {
6
+ bundle : true ,
7
+ external : [ 'typescript-essential-plugins' ] ,
7
8
// minify: !watch,
8
9
entryPoints : [ './typescript/src/volarConfig.ts' ] ,
9
10
outfile : './out/volarConfig.js' ,
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/no-require-imports */
2
2
3
- import { compact } from '@zardoy/utils'
4
- import { get } from 'lodash'
3
+ import get from 'lodash/get'
5
4
import type { Configuration } from './types'
6
5
7
6
// will be required from ./node_modules/typescript-essential-plugins/index.js
8
7
const originalPluginFactory = require ( 'typescript-essential-plugins' )
9
8
9
+ const compact = < T > ( arr : ( T | undefined ) [ ] ) : T [ ] => arr . filter ( Boolean ) as T [ ]
10
+
10
11
const plugin = ( ( context , { typescript : tsModule } = { } ) => {
11
12
if ( ! context ) throw new Error ( 'Not recieve context' )
12
13
const { typescript } = context
You can’t perform that action at this time.
0 commit comments