Skip to content

Commit 3541026

Browse files
authored
fix(workflow): allow bundling typescript with .js extensions (#1186)
1 parent 4fbe5a4 commit 3541026

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/worker/src/workflow/bundler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ exports.importInterceptors = function importInterceptors() {
201201
// https://webpack.js.org/configuration/resolve/#resolvemodules
202202
modules: [path.resolve(__dirname, 'module-overrides'), 'node_modules'],
203203
extensions: ['.ts', '.js'],
204+
extensionAlias: { '.js': ['.ts', '.js'] },
204205
alias: {
205206
__temporal_custom_payload_converter$: this.payloadConverterPath ?? false,
206207
__temporal_custom_failure_converter$: this.failureConverterPath ?? false,

0 commit comments

Comments
 (0)