Skip to content

chore: use commonjs instead of umd - #2369

Merged
1 commit merged into
masterfrom
chore/webpack-commonjs
Nov 18, 2021
Merged

chore: use commonjs instead of umd#2369
1 commit merged into
masterfrom
chore/webpack-commonjs

Conversation

@ghost

@ghost ghost commented Nov 16, 2021

Copy link
Copy Markdown

Since our outputs are used only by bin/snyk and bin/snyk uses require, there's no need to use UMD exports (which attempts to support a wide range of module formats), we can use regular CommonJS. Reduces our build complexity.

https://webpack.js.org/configuration/output/#outputlibrarytype

@github-actions

github-actions Bot commented Nov 16, 2021

Copy link
Copy Markdown
Contributor
Messages
📖

This PR will not trigger a new version. It doesn't include any commit message with feat or fix.

Generated by 🚫 dangerJS against 5c8d919

@ghost
ghost marked this pull request as ready for review November 16, 2021 13:49
@ghost
ghost self-requested a review as a code owner November 16, 2021 13:49
Since our outputs are used only by bin/snyk and bin/snyk uses `require`, there's no need to use UMD exports (which attempts to support a wide range of module formats), we can use regular CommonJS. Reduces out build complexity.
@ghost
ghost force-pushed the chore/webpack-commonjs branch from 2b51484 to 5c8d919 Compare November 18, 2021 17:12
@ghost
ghost merged commit 57dd9ca into master Nov 18, 2021
@ghost
ghost deleted the chore/webpack-commonjs branch November 18, 2021 17:52
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant