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 22import buildTsPlugin from '@zardoy/vscode-utils/build/buildTypescriptPlugin.js'
33import { build , analyzeMetafile } from 'esbuild'
44
5- build ( {
6- // bundle: true,
5+ await build ( {
6+ bundle : true ,
7+ external : [ 'typescript-essential-plugins' ] ,
78 // minify: !watch,
89 entryPoints : [ './typescript/src/volarConfig.ts' ] ,
910 outfile : './out/volarConfig.js' ,
Original file line number Diff line number Diff line change 11/* eslint-disable @typescript-eslint/no-require-imports */
22
3- import { compact } from '@zardoy/utils'
4- import { get } from 'lodash'
3+ import get from 'lodash/get'
54import type { Configuration } from './types'
65
76// will be required from ./node_modules/typescript-essential-plugins/index.js
87const originalPluginFactory = require ( 'typescript-essential-plugins' )
98
9+ const compact = < T > ( arr : ( T | undefined ) [ ] ) : T [ ] => arr . filter ( Boolean ) as T [ ]
10+
1011const plugin = ( ( context , { typescript : tsModule } = { } ) => {
1112 if ( ! context ) throw new Error ( 'Not recieve context' )
1213 const { typescript } = context
You can’t perform that action at this time.
0 commit comments