react-with-observable
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -80,3 +80,3 @@ (function (global, factory) { | ||
if (typeof val === 'undefined') { | ||
return ''; | ||
return null; | ||
} | ||
@@ -83,0 +83,0 @@ return val; |
{ | ||
"name": "react-with-observable", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "", | ||
"main": "build/index.js", | ||
"main": "build/index.common.js", | ||
"browser": "build/index.js", | ||
"unpkg": "build/index.js", | ||
"module": "build/index.esm.js", | ||
"types": "build/index.d.ts", | ||
@@ -8,0 +10,0 @@ "repository": { |
@@ -8,5 +8,5 @@ # react-with-observable | ||
`react-with-observable`: use Observables declaratively in ️️React! | ||
`react-with-observable`: use Observables declaratively in ⚛️ React! | ||
* ✅ Supports any Observable implementation compatible with ECMAScript Observable (eg. **RxJS**)! | ||
* ✅ Supports any Observable implementation compatible with ECMAScript Observable (e.g. **RxJS**)! | ||
* ✅ Inspired by the `AsyncPipe` from Angular! | ||
@@ -48,3 +48,3 @@ * ✅ Very extensible by composing Observable operators! | ||
As a result, next integer is displayed every second. | ||
As a result, the next integer is displayed every second. | ||
@@ -67,3 +67,3 @@ | ||
As a result, an `<input>` element is rendered. Its value is changed every second to 0, 10, 30, 60, 100… and so on. | ||
As the result, an `<input>` element is rendered. Its value is changed every second to 0, 10, 30, 60, 100, and so on. | ||
@@ -133,2 +133,1 @@ ### Initial value | ||
Feel free to create a new issue: [issues](https://github.com/mmiszy/react-with-observable/issues). Pull requests are also welcome! | ||
@@ -8,10 +8,21 @@ import resolve from 'rollup-plugin-node-resolve'; | ||
export default [ | ||
// browser-friendly UMD build | ||
{ | ||
input: 'src/index.tsx', | ||
output: { | ||
name: 'react-with-observable', | ||
file: pkg.browser, | ||
format: 'umd', | ||
}, | ||
output: [ | ||
{ | ||
name: 'react-with-observable', | ||
file: pkg.browser, | ||
format: 'umd', | ||
}, | ||
{ | ||
name: 'react-with-observable', | ||
file: pkg.module, | ||
format: 'es', | ||
}, | ||
{ | ||
name: 'react-with-observable', | ||
file: pkg.main, | ||
format: 'cjs', | ||
}, | ||
], | ||
plugins: [ | ||
@@ -26,14 +37,2 @@ resolve(), | ||
}, | ||
// CommonJS (for Node) and ES module (for bundlers) build. | ||
// (We could have three entries in the configuration array | ||
// instead of two, but it's quicker to generate multiple | ||
// builds from a single configuration where possible, using | ||
// an array for the `output` option, where we can specify | ||
// `file` and `format` for each target) | ||
// { | ||
// input: 'src/main.js', | ||
// external: ['ms'], | ||
// output: [{ file: pkg.main, format: 'cjs' }, { file: pkg.module, format: 'es' }], | ||
// }, | ||
]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23053
16
393
130
3