@glimmer/vm-babel-plugins

Compiles out VM assertion and deprecation utilities and debug tooling based on environment

Usage no npm install needed!

<script type="module">
  import glimmerVmBabelPlugins from 'https://cdn.skypack.dev/@glimmer/vm-babel-plugins';
</script>

README

@glimmer/vm-babel-plugins

This package is meant to be used by hosting environments which use the Glimmer VM. It exports a function which returns an array of babel plugins that should be added to your Babel configuration.

let vmBabelPlugins = require('@glimmer/vm-babel-plugins');

module.exports = {
  plugins: [
    ...vmBabelPlugins({ isDebug: true }),
  ],
};

These plugins will remove debug tooling and assertions based on the isDebug option. Currently, this is the only available option.