Remount comes in 2 flavors:
Version | Description |
---|---|
remount |
ES Modules build (default) |
remount/es5 |
UMD CommonJS build (legacy browsers) |
If you'd like to use an alternate build, you can import from it like so:
import { define } from 'remount/es5'
Or if you're using Webpack:
/* webpack.config.js */
module.exports = {
/* ... */
resolve: {
alias: {
remount: 'remount/es5'
}
}
}
When used like so, Remount will be available as window.Remount
. Great for using in JSFiddle/Codepen.
<script src='https://cdn.jsdelivr.net/npm/remount/dist/remount.es5.js' />
The ES5 build (remount/es5
) transpiles with some legacy workarounds. It's provided for a few reasons:
- Support for legacy browsers (IE9, 2011)
- Support for build tools that don't work with modern JavaScript (eg, UglifyJS)
The remount/es6
and remount/esm
builds were deprecated in v0.10.