Skip to content

Commit

Permalink
feat: add compiler extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed Aug 2, 2024
1 parent e19b7fb commit 5d3f6da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/mockCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export default exporters.map(([raw, __filepath__]) => {
externals: /^[^./].*/,
resolve: {
alias: this.options.alias,
extensions: ['.js', '.ts', '.cjs', '.mjs', '.json5', '.json'],
},
plugins: [...this.options.plugins],
output: {
Expand Down

0 comments on commit 5d3f6da

Please sign in to comment.