M3-5919: Update Storybook and Add New Webpack 5 Loader #8497
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.
Description 📝
exports
field in our@linode/api-v4
and@linode/validation
packages following M3-5873: Buildapi-v4
andvalidation
withtsup
with backwards compatibility #8484latest
Technical Explanation
api-v4
andvalidation
withtsup
with backwards compatibility #8484, we now emit only singularindex.js
files so when older compilers try to resolve paths like@linode/api-v4/lib/linodes
, the actual filelib/linodes.js
does not exist now!exports
field in ourpackage.json
s to alias paths such as@linode/api-v4/lib/**
to theindex.js
file. Webpack 4 does not use or understand theexports
field in ourpackage.json
so that's why we need this upgrade.Preview Link 📷
https://m3-5919-update-storybook-to-.manager-ec2.pages.dev/
How to test 🧪
yarn storybook
yarn workspace linode-manager run build-storybook