Skip to content

Commit 3aff26e

Browse files
committed
Add .ts and .mjs to resolve.extensions
1 parent e97a940 commit 3aff26e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ function webpackConfig(dir, additionalConfig) {
4747

4848
var webpackConfig = {
4949
mode: "production",
50+
resolve: {
51+
extensions: ['.js', '.mjs', '.ts']
52+
},
5053
module: {
5154
rules: [
5255
{

0 commit comments

Comments
 (0)