Skip to content

Commit

Permalink
feat: minify default extensions code
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed May 30, 2023
1 parent 81fa676 commit 25c80f1
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 2 deletions.
117 changes: 117 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-typescript": "^11.1.0",
"@types/diff": "^5.0.3",
"@types/node": "^18.16.2",
"@types/mime-types": "^2.1.1",
"@types/node": "^18.16.2",
"@types/semver": "^7.3.13",
"@types/vscode": "~1.77.0",
"@types/yauzl": "^2.10.0",
Expand Down
7 changes: 6 additions & 1 deletion rollup/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as babylonParser from 'recast/parsers/babylon.js'
import dynamicImportVars from '@rollup/plugin-dynamic-import-vars'
import externalAssets from 'rollup-plugin-external-assets'
import globImport from 'rollup-plugin-glob-import'
import terser from '@rollup/plugin-terser'
import * as fs from 'fs'
import * as path from 'path'
import { fileURLToPath } from 'url'
Expand Down Expand Up @@ -470,7 +471,11 @@ export default (args: Record<string, string>): rollup.RollupOptions[] => {
commonjs(),
extensionDirectoryPlugin({
include: `${DEFAULT_EXTENSIONS_PATH}/**/*`,
isDefaultExtension: true
isDefaultExtension: true,
rollupPlugins: [
commonjs(),
terser()
]
}),
{
name: 'resolve-vscode',
Expand Down

0 comments on commit 25c80f1

Please sign in to comment.