diff --git a/webpack.extensions.ts b/webpack.extensions.ts index 220f85a47a..f0c18547ee 100644 --- a/webpack.extensions.ts +++ b/webpack.extensions.ts @@ -101,7 +101,14 @@ export default function (): webpack.Configuration { ] }, resolve: { - extensions: [".ts", ".tsx", ".js"] + extensions: [".ts", ".tsx", ".js"], + // 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 + alias: { + "handlebars": "handlebars/dist/handlebars.js" + } }, plugins: [ // In ts-loader's README they said to output a built .d.ts file,