From 04d5e718ecfcdaa47cc8c7433ea852c2826df7f4 Mon Sep 17 00:00:00 2001 From: Adam Wootton Date: Thu, 4 Jul 2024 11:26:22 -0400 Subject: [PATCH] chore: add resolve alias to webpack to fix example app dynamic imports (#890) --- examples/nodejs-local/webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/nodejs-local/webpack.config.js b/examples/nodejs-local/webpack.config.js index 056e72245..c8a8d31d9 100644 --- a/examples/nodejs-local/webpack.config.js +++ b/examples/nodejs-local/webpack.config.js @@ -5,5 +5,8 @@ module.exports = (config) => { } // set the "context" for where __dirname should be relative to, to the root of the repo. config.context = config.context + '/../..' + config.resolve.extensionAlias = { + '.js': ['.ts', '.js'], + } return config }