How to use the carbon-components-react.min.js function in carbon-components-react

To help you get started, we’ve selected a few carbon-components-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github carbon-design-system / carbon / packages / react / scripts / rollup.config.js View on Github external
generateBundle(options, bundle) {
            const gzipSize = gzip.sync(
              bundle['carbon-components-react.min.js'].code
            );
            const { bundleSizeThreshold } = packageJson;
            console.log('Total size (gzipped):', gzipSize); // eslint-disable-line no-console
            if (gzipSize > bundleSizeThreshold) {
              throw new RangeError(
                `Exceeded size threshold of ${bundleSizeThreshold} bytes (gzipped)!`
              );
            }
          },
        },
github carbon-design-system / carbon / scripts / rollup.config.js View on Github external
generateBundle(options, bundle) {
            const gzipSize = gzip.sync(
              bundle['carbon-components-react.min.js'].code
            );
            const { bundleSizeThreshold } = packageJson;
            console.log('Total size (gzipped):', gzipSize); // eslint-disable-line no-console
            if (gzipSize > bundleSizeThreshold) {
              throw new RangeError(
                `Exceeded size threshold of ${bundleSizeThreshold} bytes (gzipped)!`
              );
            }
          },
        },

carbon-components-react

The Carbon Design System is IBM’s open-source design system for products and experiences.

Apache-2.0
Latest version published 1 month ago

Package Health Score

61 / 100
Full package analysis