Skip to content

Commit

Permalink
Remove unneeded async keyword from buildLoader function
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckdumont committed Nov 21, 2019
1 parent fb6d325 commit e8f845c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js

node_js:
- '8'
- '6'

env:
- WEBPACK_VERSION=V4 COVERALLS_PARALLEL=true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ If you do not want to build the Dojo loader every time Webpack is run, then you

node node_modules/dojo-webpack-plugin/buildDojo/build.js node_modules/dojo/dojo.js ./release

You can also build the loader from a Node script as shown below. Note that `buildLoader` is declared `async` and so can also be called with `await`.
You can also build the loader from a Node script as shown below.

```javascript
const buildLoader = require('dojo-webpack-loader').buildLoader;
Expand Down
2 changes: 1 addition & 1 deletion buildDojo/buildapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const fork = require("child_process").fork;
* featureOverrides - Overrides to ./loaderDefaultFeatures.js
* noConsole - True to suppress stdout from the builder
*/
async function buildLoader(params) {
function buildLoader(params) {
const ls = fork(
path.resolve(__dirname, "buildRunner.js"),
[
Expand Down

0 comments on commit e8f845c

Please sign in to comment.