mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix webpack warning require.extensions is not supported by webpack. Use a loader instead.
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
parent
7154f5b6fa
commit
de17ecb13f
@ -52,7 +52,14 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
|
|||||||
extensions: [
|
extensions: [
|
||||||
".js", ".jsx", ".json",
|
".js", ".jsx", ".json",
|
||||||
".ts", ".tsx",
|
".ts", ".tsx",
|
||||||
]
|
],
|
||||||
|
// the alias is to avoid webpack warning
|
||||||
|
// "require.extensions is not supported by webpack. Use a loader instead."
|
||||||
|
// from ./src/extensions/cluster-feature.ts
|
||||||
|
// the trick is from <https://github.com/handlebars-lang/handlebars.js/issues/953#issuecomment-239874313>
|
||||||
|
alias: {
|
||||||
|
"handlebars": "handlebars/dist/handlebars.js"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
minimize: isProduction,
|
minimize: isProduction,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user