Files
sealos/extensions/ide/vscode/devbox/webpack.config.js
T
Alex Lee 9769f1d7f5 feat(vscode/devbox): plugin transform init (#5188)
* feat(vscode/devbox): plugin transform init

* chore(devbox): adjust folder position

* fix: package-lock and sanitized bug

* fix: another try

* fix: some rebase fix

* feat: db and network basic show

* fix: rebase cause svg lose

* feat: devboxListView refactor

* fix: open devbox bug

* feat: delete ssh config

* fix: refresh devboxList after connect

* fix: some type bug

* fix: typo bug

* chore: svg rename

* chore: svg rename

* feat: default runtime svg

* fix: refresh devboxlist and convert sshconfig to version 2

* fix: form update  runtimeVersion unchanged bug

* feat: default runtime version

* feat: params goto

* feat: create new devbox

* fix: runtimeNamespace bug

* fix: api url bug,I deeeeead

* perf: file deal

* chore: remove unused code

* fix: write ssh_config bug

* chore: package adjust

* chore: change some file

* feat: copy connection string

* fix: support remote-ssh customConfigFile

* feat: different region support

* perf: some code adjust

* feat: refresh button of db and network

* chore: add svg

* chore: theme adaptation

* feat: adjust devboxList show

* feat: settings to custom apiUrl

* fix: 缓兵之计,devbox 硬调整

* feat: status un used version,haha

* fix: adjust vscode and code position

* feat: devbox status

* fix: delete devbox svg and adjust

* fix: copy button

* fix: copy feat adjust

* chore: some text adjust

* feat: feedback

* fix: db view adjust

* feat: open in vscode internal broswer

* fix: file authority problem adjust

* chore: adjust code position

* fix: semgrep

* feat: web delete will cause local ssh deleted

* fix: devboxList cpu/memory tooltip z-index

* chore: 1.0.0

* chore: update license

* chore: remove unused code

* chore: remove png to link

* chore: version

* fix: path bug

* fix: username have space

* feat: delete project will delete remote-ssh remotePlatform config item

* feat: delete devbox will delete private key

* feat: db goto web page

* fix: connect bug

* fix: path include bug

* chore: change version

* feat: create api url

* feat: version change

* fix: devboxList update view

* chore: some adjust

* chore: version change

* fix: quota bug

* fix: pr issue
2024-11-15 18:58:45 +08:00

49 lines
1.6 KiB
JavaScript

//@ts-check
'use strict'
const path = require('path')
//@ts-check
/** @typedef {import('webpack').Configuration} WebpackConfig **/
/** @type WebpackConfig */
const extensionConfig = {
target: 'node', // VS Code extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'dist'),
filename: 'extension.js',
libraryTarget: 'commonjs2',
},
externals: {
vscode: 'commonjs vscode', // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
// modules added here also need to be added in the .vscodeignore file
},
resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: [
{
loader: 'ts-loader',
},
],
},
],
},
devtool: 'nosources-source-map',
infrastructureLogging: {
level: 'log', // enables logging required for problem matchers
},
}
module.exports = [extensionConfig]