Skip to content

Commit

Permalink
chore: add resolve alias to webpack to fix example app dynamic imports (
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwootto authored Jul 4, 2024
1 parent c71cca7 commit 04d5e71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/nodejs-local/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ module.exports = (config) => {
}
// set the "context" for where __dirname should be relative to, to the root of the repo.
config.context = config.context + '/../..'
config.resolve.extensionAlias = {
'.js': ['.ts', '.js'],
}
return config
}

0 comments on commit 04d5e71

Please sign in to comment.