Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
umd.js -> standalone.js, fixed the browser bundle in general
and added a note on it to the README
  • Loading branch information
quantizor committed Jun 6, 2018
1 parent 3da27a1 commit dc2a054
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,15 +429,18 @@ ReactDOM.render(<Router routes={routes} outerComponent={App} />, root);
You can also use consume Buttermilk from a CDN like unpkg:

```
https://unpkg.com/[email protected].0/dist/umd.js
https://unpkg.com/[email protected].0/dist/umd.min.js
https://unpkg.com/[email protected].1/dist/standalone.js
https://unpkg.com/[email protected].1/dist/standalone.min.js
```

The exports will be accessible at `window.Buttermilk`. Note that this requires `react >= 16.3` (`window.React`) and `prop-types` (`window.PropTypes`) to also be accessible in the `window` scope.

Both the minified and development versions ship with source maps for ease of debugging.

## more examples

- holistic example + animated route transitions: <https://codesandbox.io/s/30llnkwj5q>
- browser-only without a bundler: <https://codesandbox.io/s/p96j9159lq>

## goals

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "buttermilk",
"description": "Beautifully simple isomorphic routing for React projects.",
"version": "1.1.0",
"version": "1.1.1",
"repository": {
"type": "git",
"url": "https://github.com/probablyup/buttermilk"
Expand Down
8 changes: 4 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ function generateConfig(overrides, minify = false, externalHelpers = false) {
export default [
generateConfig({
output: {
file: 'dist/umd.js',
format: 'umd',
file: 'dist/standalone.js',
format: 'iife',
}
}),
generateConfig({
output: {
file: 'dist/umd.min.js',
format: 'umd',
file: 'dist/standalone.min.js',
format: 'iife',
}
}, true),
generateConfig({
Expand Down

0 comments on commit dc2a054

Please sign in to comment.