Skip to content

Commit

Permalink
docs: fix typos in index es6 and build script (#2650)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv authored and bobylito committed Jan 25, 2018
1 parent 42991bb commit d3a213b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions index.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ const instantSearchFactory = Object.assign(toFactory(InstantSearch), {

Object.defineProperty(instantSearchFactory, 'widgets', {
get() {
throw new ReferenceError(`
You can't access to 'instantsearch.widgets' directly from the ES6 build.
Import the widgets this way "import { searchBox } from 'instantsearch.js/es/widgets'"
`);
throw new ReferenceError(
`You can't access 'instantsearch.widgets' directly from the ES6 build.
Import the widgets this way: 'import {SearchBox} from "instantsearch.js/es/widgets"'`
);
},
});

Object.defineProperty(instantSearchFactory, 'connectors', {
get() {
throw new ReferenceError(`
You can't access to 'instantsearch.connectors' directly from the ES6 build.
Import the connectors this way "import { connectSearchBox } from 'instantsearch.js/es/connectors'"
`);
throw new ReferenceError(
`You can't access 'instantsearch.connectors' directly from the ES6 build.
Import the connectors this way: 'import {connectSearchBox} from "instantsearch.js/es/connectors"'`
);
},
});

Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ csso dist/instantsearch-theme-algolia.css dist/instantsearch-theme-algolia.min.c

wait

printf "dist/instantsearch.min.js gzipped will weight `cat dist/instantsearch.min.js | gzip -9 | wc -c | pretty-bytes`\n\n"
printf "dist/instantsearch.min.js gzipped will weigh `cat dist/instantsearch.min.js | gzip -9 | wc -c | pretty-bytes`\n\n"

echo "➡️ Bundle instantsearch.js to ES5 build './dist-es5-module' via babel-cli"
BABEL_ENV=production babel -q index.js -o dist-es5-module/index.js &
Expand Down

0 comments on commit d3a213b

Please sign in to comment.