mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
chore(editor/vscode): remove unused dependencies and also webpack.config.js (#1153)
This commit is contained in:
parent
e9b88e0b45
commit
9b913301e8
3 changed files with 1 additions and 57 deletions
|
|
@ -64,7 +64,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.17.5",
|
||||
"@types/resolve": "^1.20.2",
|
||||
"@types/vscode": "^1.80.0",
|
||||
"@vscode/vsce": "^2.22.0",
|
||||
"cross-env": "^7.0.2",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
lockfileVersion: '6.1'
|
||||
lockfileVersion: '6.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
|
|
@ -13,9 +13,6 @@ devDependencies:
|
|||
'@types/node':
|
||||
specifier: ^18.17.5
|
||||
version: 18.17.5
|
||||
'@types/resolve':
|
||||
specifier: ^1.20.2
|
||||
version: 1.20.2
|
||||
'@types/vscode':
|
||||
specifier: ^1.80.0
|
||||
version: 1.80.0
|
||||
|
|
@ -236,10 +233,6 @@ packages:
|
|||
resolution: {integrity: sha512-xNbS75FxH6P4UXTPUJp/zNPq6/xsfdJKussCWNOnz4aULWIRwMgP1LgaB5RiBnMX1DPCYenuqGZfnIAx5mbFLA==}
|
||||
dev: true
|
||||
|
||||
/@types/resolve@1.20.2:
|
||||
resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==}
|
||||
dev: true
|
||||
|
||||
/@types/vscode@1.80.0:
|
||||
resolution: {integrity: sha512-qK/CmOdS2o7ry3k6YqU4zD3R2AYlJfbwBoSbKpBoP+GpXNE+0NEgJOli4n0bm0diK5kfBnchgCEj4igQz/44Hg==}
|
||||
dev: true
|
||||
|
|
|
|||
|
|
@ -1,48 +0,0 @@
|
|||
//@ts-check
|
||||
|
||||
"use strict";
|
||||
|
||||
const path = require("path");
|
||||
|
||||
/**@type {import('webpack').Configuration}*/
|
||||
const config = {
|
||||
target: "node", // vscode extensions run in node context for VS Code web 📖 -> https://webpack.js.org/configuration/target/#target
|
||||
mode: "production",
|
||||
|
||||
entry: "./client/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",
|
||||
devtoolModuleFilenameTemplate: "../[resource-path]",
|
||||
},
|
||||
devtool: "hidden-source-map",
|
||||
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/
|
||||
},
|
||||
resolve: {
|
||||
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
|
||||
mainFields: ["browser", "module", "main"], // look for `browser` entry point in imported node modules
|
||||
extensions: [".ts", ".js"],
|
||||
alias: {},
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
exclude: /node_modules/,
|
||||
use: [
|
||||
{
|
||||
loader: "ts-loader",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
infrastructureLogging: {
|
||||
level: "log", // enables logging required for problem matchers
|
||||
},
|
||||
};
|
||||
module.exports = config;
|
||||
Loading…
Reference in a new issue