Skip to content
This repository has been 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
merged 7 commits into from
Feb 12, 2021

Conversation

bradlhart
Copy link
Contributor

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.js and externals.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

  • API Changes

Documentation Additions

  • Documentation Additions

Added a note that externals.js or externals.min.js are now required to be added in order to use eosjs

@bradlhart bradlhart merged commit 4c73057 into release/22.0.x Feb 12, 2021
@bradlhart bradlhart deleted the webpack_externals branch February 12, 2021 20:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants