-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/rollup experiment #152
base: master
Are you sure you want to change the base?
Conversation
rollup.config.js
Outdated
// console.log(filepaths); | ||
|
||
// exclude all dependencies from being bundled together, except for the problematic jsonLd, used by "open-attestation", "oa-verify" dependencies | ||
let deps = [...Object.keys(pkge.dependencies), ...Object.keys(pkge.devDependencies)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devdependencies shouldnt be bundled so let's not exclude
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3rd-party dependencies, i.e. node modules, shouldn't be bundled together. This is so regardless of whether they are direct dependencies or dev-dependencies.
Here i am trying to prevent the rollup from bundling all the node modules (except for the open-attestation libs as we want the problematic import and export lines in the esm files to be removed). In the lines below, the deps
variable is specified in the external
config property to exclude them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DEV dependencies thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we should actually bundle everything as it's not a library but an app, but I'm fine with the current approach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove pkge.devDependencies
rollup experiment