Skip to content

Commit d3a213b

Browse files
Haroenvbobylito
authored andcommitted
docs: fix typos in index es6 and build script (#2650)
1 parent 42991bb commit d3a213b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

index.es6.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ const instantSearchFactory = Object.assign(toFactory(InstantSearch), {
1616

1717
Object.defineProperty(instantSearchFactory, 'widgets', {
1818
get() {
19-
throw new ReferenceError(`
20-
You can't access to 'instantsearch.widgets' directly from the ES6 build.
21-
Import the widgets this way "import { searchBox } from 'instantsearch.js/es/widgets'"
22-
`);
19+
throw new ReferenceError(
20+
`You can't access 'instantsearch.widgets' directly from the ES6 build.
21+
Import the widgets this way: 'import {SearchBox} from "instantsearch.js/es/widgets"'`
22+
);
2323
},
2424
});
2525

2626
Object.defineProperty(instantSearchFactory, 'connectors', {
2727
get() {
28-
throw new ReferenceError(`
29-
You can't access to 'instantsearch.connectors' directly from the ES6 build.
30-
Import the connectors this way "import { connectSearchBox } from 'instantsearch.js/es/connectors'"
31-
`);
28+
throw new ReferenceError(
29+
`You can't access 'instantsearch.connectors' directly from the ES6 build.
30+
Import the connectors this way: 'import {connectSearchBox} from "instantsearch.js/es/connectors"'`
31+
);
3232
},
3333
});
3434

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ csso dist/instantsearch-theme-algolia.css dist/instantsearch-theme-algolia.min.c
1212

1313
wait
1414

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

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

0 commit comments

Comments
 (0)