1
0
mirror of https://github.com/bitwarden/browser synced 2026-03-02 03:21:19 +00:00

Added knip configuration and fixed filepaths causing errors

This commit is contained in:
Leslie Tilton
2025-03-25 15:33:57 -05:00
parent abb314a0e7
commit bdccb02fc7
4 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
import path from "path";
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
// Re-use the OSS CLI webpack config
@@ -6,7 +8,7 @@ const webpackConfig = require("../../apps/cli/webpack.config");
// Update paths to use the bit-cli entrypoint and tsconfig
webpackConfig.entry = { bw: "../../bitwarden_license/bit-cli/src/bw.ts" };
webpackConfig.resolve.plugins = [
new TsconfigPathsPlugin({ configFile: "../../bitwarden_license/bit-cli/tsconfig.json" }),
new TsconfigPathsPlugin({ configFile: path.join(__dirname, "/tsconfig.json") }),
];
module.exports = webpackConfig;