Skip to content

Instantly share code, notes, and snippets.

@matthewp
Last active July 19, 2018 18:00
Show Gist options
  • Save matthewp/5ad3e0fb3eb7e605655d7e3d346e26c5 to your computer and use it in GitHub Desktop.
Save matthewp/5ad3e0fb3eb7e605655d7e3d346e26c5 to your computer and use it in GitHub Desktop.
steal-tools notes

This is the second major release of steal-tools 2.0.0. When upgrading be sure to also get steal 2.0.0. See the migration guide and upgrade today.

Major features

Tree shaking

In steal-tools 2.0.0 unused exports (and unused modules) are tree shaken away. You don't need to do anything to get this behavior. In the chance that your code doesn't work well with tree shaking, you can disable it through a build option:

stealTools.build({}, {
  treeShaking: false
});

The migration guide explains these choices.

Envify on by default

In steal 1.x you could enable envify, which replaces usage of process.env with the current environment variables. In 2.0 this behavior is on by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment