Skip to content

Commit

Permalink
Export precompiled bundle only, fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Aug 20, 2019
1 parent bfba0a8 commit 47e2636
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ yarn-debug.log*
yarn-error.log*
node_modules/
.idea/
*.iml
*.iml
package-lock.json
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "react-xmasonry",
"version": "2.5.6",
"version": "3.0.0",
"description": "Simple & featured native masonry layout implementation for React JS",
"main": "dist/index.js",
"module": "src/index.jsx",
"scripts": {
"build": "webpack -p",
"test": "ava"
Expand Down
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ Usage
Import `XMasonry` and `XBlock` components:

```js
import { XMasonry, XBlock } from "react-xmasonry"; // Imports JSX plain sources
import { XMasonry, XBlock } from "react-xmasonry/dist/index.js"; // Imports precompiled bundle
import { XMasonry, XBlock } from "react-xmasonry"; // Imports precompiled bundle
```

The simplest layout using JSX and some styling may look like the following:
Expand Down
5 changes: 0 additions & 5 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,3 @@ export {
XMasonry,
XBlock
};

if (typeof window !== `undefined`) {
window.XMasonry = XMasonry;
window.XBlock = XBlock;
}

0 comments on commit 47e2636

Please sign in to comment.