Skip to content

Commit 84f03dd

Browse files
committed
No parse for example js
1 parent c2dbfc2 commit 84f03dd

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ A CodePen demo is available [here](http://codepen.io/davidchin/full/GpNvqw/).
1010
1. Install `react-input-range` using npm. `npm install react-input-range`
1111
2. Import `react-input-range.css` to apply the default styling.
1212
3. Import `react-input-range.js` to use `InputRange` component.
13+
4. Depending on your browser support requirement, `babel-core/polyfill` or `core-js/es6` polyfill might be needed.
1314

1415
## Usage
1516
If accepting a range of values:

example/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
<div id="input-range"></div>
1212
</form>
1313

14+
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
15+
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.25/browser-polyfill.js"></script>
1416
<script src="./build/example.js"></script>
1517
</body>
1618
</html>

tasks/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ config.script = {
4444
entries: [
4545
config.example.src + '/example.js',
4646
],
47+
noParse: [
48+
require.resolve(path.join(process.cwd(), config.build, config.name)),
49+
],
4750
output: 'example.js',
4851
dest: config.example.build,
4952
debug: true,

0 commit comments

Comments
 (0)