1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core/webpack/common.ts
Sebastian Malton ed36b46e01 Try to fix problems with seperate chunks
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-02-02 14:28:40 -05:00

33 lines
807 B
TypeScript

/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type webpack from "webpack";
import path from "path";
import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin";
import { webpackLensMain } from "./main";
import { buildDir } from "./vars";
export const webpackLensCommon = (): webpack.Configuration => ({
...webpackLensMain(),
name: "lens-app-common",
entry: {
common: path.resolve(__dirname, "..", "src", "common", "library.ts"),
},
dependencies: [],
output: {
publicPath: "",
library: {
type: "commonjs2",
},
path: path.resolve(buildDir, "library"),
},
optimization: {
minimize: false,
},
plugins: [
new ForkTsCheckerPlugin({}),
],
});