npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

deduped-babel-presets

v0.0.21

Published

Babel 6 presets with shared dependencies manually deduplicated for npm2 compatibility

Downloads

6

Readme

Deduped Babel 6 Presets

npm package

Babel 6 presets and dependencies, with their shared dependencies manually deduplicated for npm2 compatibility.

This reduces the total size for an npm2 install of this module's dependencies from ~169 MB to ~7.8 MB:

| Before | After | | :---: | :---: | | | |

The following presets are available:

Presets

These modules provide presets for use in your Babel presets config:

Core Babel Presets

Where not otherwise noted, these provide the equivalent official Babel preset:

  • deduped-babel-presets/es2015
  • deduped-babel-presets/es2016
  • deduped-babel-presets/react
  • deduped-babel-presets/stage-3
  • deduped-babel-presets/stage-2
  • deduped-babel-presets/stage-1 - babel-preset-stage-1 plus the transform-decorators-legacy plugin.
  • deduped-babel-presets/stage-0 - provides the same additional plugins as babel-preset-stage-0, but includes deduped-babel-presets/stage-1 instead of babel-preset-stage-1.

Custom Presets

  • deduped-babel-presets/es2015-loose - babel-preset-es2015 with loose mode enabled where available.
  • deduped-babel-presets/es2015-native - babel-preset-es2015 with es2015-modules-commonjs disabled, for tree-shaking builds with tools like Rollup and Webpack v2.
  • deduped-babel-presets/es2015-loose-native - a combination of the above two presets.
  • deduped-babel-presets/react-hmre - development preset for React Hot Module Reloading and render() error catching.
  • deduped-babel-presets/react-prod - production optimisations for React, using the following plugins:
  • deduped-babel-presets/runtime - preset for using the transform-runtime plugin (with all of its features activated as per the default).
  • deduped-babel-presets/runtime-helpers - transform-runtime configured solely to import helpers from babel-runtime when necessary.
  • deduped-babel-presets/runtime-polyfill - transform-runtime configured to import helpers from babel-runtime and apply ES6 polyfills within your code.
  • deduped-babel-presets/runtime-regenerator - transform-runtime configured to import helpers from babel-runtime and the regenerator runtime when necessary (i.e. when async/await syntax is used).

Plugins

These modules provide plugins for use in your Babel plugins config:

  • deduped-babel-presets/plugins/istanbul - the istanbul plugin for code coverage instrumentation, which needs exclude/include config.

  • deduped-babel-presets/plugins/react-inline-elements - the react-inline-elements plugin.

    This is not included in the deduped-babel-presets/react-prod preset because it currently depends on having Symbol polyfilled to work in older browsers, which has the potential to introduce breaking changes to your production build.

    See React issue #5138.

MIT Licensed

pkgcount was used to manually deduplicate Babel 6 shared dependencies.