Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
backpack-transpiled
Advanced tools
Scripts used to publish a transpiled version of Skyscanner's Backpack design-system components.
This is not an official Skyscanner project. It is provided "as-is", with no guarantee of support.
Skyscanner's web components (for React) are published untranspiled. This is fine internally because we have a custom set of react-scripts that handle ES6 syntax and SASS files, but projects outside Skyscanner might not want to use backpack-react-scripts or set up custom bundler rules.
So this is a transpiled version of the components that uses vanilla JS and CSS.
This is shipped as one big package - but modern tree-shaking techniques should mean that your bundle size is not adversely affected.
For component documentation, see https://backpack.github.io/.
Simply import the components you want to use, and render them.
import BpkButton from 'backpack-transpiled/bpk-component-button';
...
return (<BpkButton>Test</BpkButton>);
To use this in Next.js there are a couple of additional steps needed.
Install css-loader
, mini-css-extract-plugin
, next-transpile-modules
and webpack
.
(If your next project is using webpack 4, make sure you install a version of webpack 4).
Download next.config.js
and place it at the top of your project:
Installing and using backpack-transpiled
should now work as it would in a vanilla create-react-app.
Contributions are welcome. Please fork and submit a PR if you want to add or change a feature. See CONTRIBUTING.md for information on how to set up the project.
FAQs
Transpiled version of Skyscanner's design system (Backpack)
The npm package backpack-transpiled receives a total of 4 weekly downloads. As such, backpack-transpiled popularity was classified as not popular.
We found that backpack-transpiled demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.