Skip to content
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

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open

Chore/rollup experiment #152

wants to merge 28 commits into from

Conversation

eugbyte
Copy link
Contributor

@eugbyte eugbyte commented Aug 4, 2021

rollup experiment

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)]
Copy link
Contributor

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

Copy link
Contributor Author

@eugbyte eugbyte Aug 18, 2021

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DEV dependencies thanks

Copy link
Contributor

@Nebulis Nebulis Aug 18, 2021

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove pkge.devDependencies

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.

2 participants