mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: fix some packages required prepare scripts
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
0bd7b1fe92
commit
f8ac072df9
12 files changed
+461
-239
No files matched your search
@@ -2,6 +2,10 @@ const ForkTsCheckerPlugin = require("fork-ts-checker-webpack-plugin");
|
||||
const { MakePeerDependenciesExternalPlugin } = require("./plugins/make-peer-dependencies-external");
|
||||
const { ProtectFromImportingNonDependencies } = require("./plugins/protect-from-importing-non-dependencies");
|
||||
|
||||
/**
|
||||
*
|
||||
* @returns {import("webpack").Configuration}
|
||||
*/
|
||||
module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
||||
name: entrypointFilePath,
|
||||
entry: { index: entrypointFilePath },
|
||||
@@ -45,7 +49,9 @@ module.exports = ({ entrypointFilePath, outputDirectory }) => ({
|
||||
? "index.js"
|
||||
: `${pathData.chunk.name}/index.js`,
|
||||
|
||||
libraryTarget: "commonjs2",
|
||||
library: {
|
||||
type: "commonjs2"
|
||||
}
|
||||
},
|
||||
|
||||
externalsPresets: { node: true },
|
||||
|
||||
Reference in new issue
Block a user