This repository was archived by the owner on Aug 2, 2022. It is now read-only.
Webpack separating external packages and cross-platform building (release/22.0.x)#832
Merged
bradlhart merged 7 commits intorelease/22.0.xfrom Feb 12, 2021
Merged
Webpack separating external packages and cross-platform building (release/22.0.x)#832bradlhart merged 7 commits intorelease/22.0.xfrom
bradlhart merged 7 commits intorelease/22.0.xfrom
Conversation
jamesfolk-blockone
approved these changes
Feb 12, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
Webpack has been packaging external packages with eosjs and there is a requirement to ensure that these external packages are separated in a different file. Additionally, webpack and tsc needed deletion of the files before they run and we were using rm -rf which is not crossplatform. Webpack has a plugin that can clean a directory but for tsc, I added rimraf, a cross-platform package for this use case.
Since the vendor files have been moved to
externals.jsandexternals.min.js, these files must be included when using eosjs in the browser going forward.Second PR to cherry pick commits to release/22.0.x branch
API Changes
Documentation Additions
Added a note that
externals.jsorexternals.min.jsare now required to be added in order to use eosjs