mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
monaco-editor as externals
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
d3067ddc51
commit
051cc59401
@ -13,6 +13,8 @@ import { buildDir } from "./vars";
|
|||||||
import CircularDependencyPlugin from "circular-dependency-plugin";
|
import CircularDependencyPlugin from "circular-dependency-plugin";
|
||||||
import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin";
|
import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin";
|
||||||
|
|
||||||
|
const rendererConfig = renderer({ showVars: false });
|
||||||
|
|
||||||
const config = [
|
const config = [
|
||||||
{
|
{
|
||||||
...main(),
|
...main(),
|
||||||
@ -41,7 +43,8 @@ const config = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
...renderer({ showVars: false }),
|
...rendererConfig,
|
||||||
|
name: "lens-app-common",
|
||||||
entry: {
|
entry: {
|
||||||
common: path.resolve(__dirname, "..", "src", "common", "library.ts"),
|
common: path.resolve(__dirname, "..", "src", "common", "library.ts"),
|
||||||
},
|
},
|
||||||
@ -64,8 +67,7 @@ const config = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
...renderer({ showVars: false }),
|
...rendererConfig,
|
||||||
name: "lens-app-common",
|
|
||||||
entry: {
|
entry: {
|
||||||
renderer: path.resolve(__dirname, "..", "src", "renderer", "library.ts"),
|
renderer: path.resolve(__dirname, "..", "src", "renderer", "library.ts"),
|
||||||
},
|
},
|
||||||
@ -78,6 +80,10 @@ const config = [
|
|||||||
optimization: {
|
optimization: {
|
||||||
minimize: false,
|
minimize: false,
|
||||||
},
|
},
|
||||||
|
externals: {
|
||||||
|
...(rendererConfig.externals as any),
|
||||||
|
"monaco-editor": "commonjs monaco-editor",
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new DefinePlugin({
|
new DefinePlugin({
|
||||||
CONTEXT_MATCHER_FOR_NON_FEATURES: `/\\.injectable(\\.${platform})?\\.tsx?$/`,
|
CONTEXT_MATCHER_FOR_NON_FEATURES: `/\\.injectable(\\.${platform})?\\.tsx?$/`,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user