From e318a3d7bc5993389ed122a857e364cbe88102a7 Mon Sep 17 00:00:00 2001 From: Spencer Date: Mon, 28 Sep 2020 12:49:12 -0700 Subject: [PATCH] [7.x] [kbn/optimizer] fix .json extension handling (#78524) (#78658) Co-authored-by: spalger Co-authored-by: Elastic Machine Co-authored-by: spalger Co-authored-by: Elastic Machine --- packages/kbn-optimizer/src/worker/webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-optimizer/src/worker/webpack.config.ts b/packages/kbn-optimizer/src/worker/webpack.config.ts index a885821577cd4..a83203f153fcf 100644 --- a/packages/kbn-optimizer/src/worker/webpack.config.ts +++ b/packages/kbn-optimizer/src/worker/webpack.config.ts @@ -212,7 +212,7 @@ export function getWebpackConfig(bundle: Bundle, bundleRefs: BundleRefs, worker: }, resolve: { - extensions: ['.js', '.ts', '.tsx', 'json'], + extensions: ['.js', '.ts', '.tsx', '.json'], mainFields: ['browser', 'main'], alias: { tinymath: require.resolve('tinymath/lib/tinymath.es5.js'),