Sass helper for importing files only once. Used in the Carbon Design System
Getting started
To install @carbon/import-once in your project, you will need to run the
following command using npm:
npm install -S @carbon/import-once
If you prefer Yarn, use the following command
instead:
yarn add @carbon/import-once
Usage
@carbon/import-once is helpful when needing to guarantee that a module is
loaded only once. It does this by exporting a exports mixin that you can use.
This mixin is particularly useful when you have a situation where your work
might share common dependencies that you don't want duplicated. For example,
imagine we had modules a.scss and b.scss that both import c.scss. Using
the exports mixin from @carbon/import-once will guarantee that c.scss is
loaded only once.
We're always looking for contributors to help us fix bugs, build new features,
or help us improve the project documentation. If you're interested, definitely
check out our Contributing Guide! 👀
This package uses IBM Telemetry to collect metrics data. By installing this
package as a dependency you are agreeing to telemetry collection. To opt out,
see
Opting out of IBM Telemetry data collection.
For more information on the data being collected, please see the
IBM Telemetry documentation.
Sass helper for importing files only once. Used in the Carbon Design System
The npm package @carbon/import-once receives a total of 11,251 weekly downloads. As such, @carbon/import-once popularity was classified as popular.
We found that @carbon/import-once demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 20 open source maintainers collaborating on the project.
Package last updated on 11 Mar 2024
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.
Bybit's $1.46B hack by North Korea's Lazarus Group pushes 2025 crypto losses to $1.6B in just two months, already surpassing all of 2024's $1.49B total.
OpenSSF has published OSPS Baseline, an initiative designed to establish a minimum set of security-related best practices for open source software projects.
Michigan TypeScript founder Dimitri Mitropoulos implements WebAssembly runtime in TypeScript types, enabling Doom to run after processing 177 terabytes of type definitions.