Skip to content

Commit

Permalink
Added installation instructions for FastBoot users
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlee2 committed Aug 4, 2020
1 parent 2efedd0 commit 7203bb8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,34 @@ Installation
ember install ember-container-query
```

<details>
<summary>Use FastBoot? ⚠️</summary>

This addon uses nullish coalescing operator `??`. When you use [FastBoot](https://github.com/ember-fastboot/ember-cli-fastboot) and only support [browsers that natively support `??`](https://v8.dev/features/nullish-coalescing#support), you may run into a build error.

```bash
/var/folders/2z/93zyyhx13rs879qr8rzyxrb40000gn/T/broccoli-689520dxo26a682Mz/out-529-broccoli_merge_trees/assets/vendor.js:121232
return this.args.features ?? {};
^

SyntaxError: Unexpected token '?'
```

Please make sure to add `node: 'current'` to your `config/targets.js` file.

```javascript
'use strict';

const browsers = [ ... ];

module.exports = {
browsers,
node: 'current'
};
```

</details>


Applications
------------------------------------------------------------------------------
Expand Down

0 comments on commit 7203bb8

Please sign in to comment.