From 82f52dc2cd9628eabb46f6410ea0eac7cd033925 Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 24 Aug 2023 10:04:22 -0400 Subject: [PATCH] [Core] Allow module entrypoint to be written in typescript There is an unnecessary ".js" added to the name resolution in webpack.config.js which forces the entrypoint of modules referred to by the config to be javascript. This removes it so that .ts/.tsx files can serve as the entrypoint to a module. --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 2d02310c924..bd19d1cfa68 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -151,7 +151,7 @@ function lorisModule(mname, entries) { for (let i = 0; i < entries.length; i++) { entObj[entries[i]] = - base + '/' + mname + '/jsx/' + entries[i] + '.js'; + base + '/' + mname + '/jsx/' + entries[i]; } return { entry: entObj,