Skip to content

Commit 110ae39

Browse files
committed
WIP: fix webpack
1 parent 822a54c commit 110ae39

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
"test:integration": "mocha --exit 'test/integration/**/*.spec.ts'",
3131
"test:integration:release": "cross-env TEST_BUILT_TARBALL=1 npm run test:integration"
3232
},
33-
"mocha": {
34-
"node-option": [
35-
"import=tsx"
36-
]
37-
},
3833
"repository": "httptoolkit/httptoolkit-server",
3934
"homepage": "https://github.com/httptoolkit/httptoolkit-server",
4035
"bugs": "https://github.com/httptoolkit/httptoolkit-server/issues",

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ module.exports = {
115115
new webpack.EnvironmentPlugin({ HTK_IS_BUNDLED: true })
116116
],
117117
resolve: {
118-
extensions: [ '.tsx', '.ts', '.mjs', '.js' ]
118+
extensionAlias: {
119+
'.js': ['.ts', '.js']
120+
},
121+
extensions: [ '.ts', '.mjs', '.js' ]
119122
}
120123
};

0 commit comments

Comments
 (0)