Skip to content

Commit 89a0f4c

Browse files
committed
Support common alternative extensions for entries.
1 parent 05fc454 commit 89a0f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ function webpackConfig(dir, additionalConfig) {
7474
devtool: false
7575
};
7676
fs.readdirSync(dirPath).forEach(function(file) {
77-
if (file.match(/\.js$/)) {
78-
var name = file.replace(/\.js$/, "");
77+
if (file.match(/\.(m?js|ts)$/)) {
78+
var name = file.replace(/\.(m?js|ts)$/, "");
7979
webpackConfig.entry[name] = "./" + name;
8080
}
8181
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy