Skip to content

Commit

Permalink
Update package-support docs with @google-cloud/vision workaround (#432
Browse files Browse the repository at this point in the history
)

Add workaround for `@google-cloud/vision`
  • Loading branch information
styfle authored Jun 18, 2019
1 parent 2be6bad commit 31b1108
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion package-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,31 @@ Packages that need specific configurations for ncc support are included below.

If you are having trouble running a package with ncc, try searching for it in the [issue queue](https://github.com/zeit/ncc/issues) or posting an issue.

### Sequelize
### `sequelize`

For example, with the `mariadb` dialect:

```js
const Sequelize = require('sequelize');
const db = new Sequelize({
dialect: 'mariadb',
dialectModule: require('mariadb')
});
```

The important part here is defining `dialectModule`.

### `@google-cloud/vision`

Add `google-proto-files` in your `package.json` dependencies.

```json
{
"name": "example",
"main": "index.js",
"dependencies": {
"@google-cloud/vision": "1.1.1",
"google-proto-files": "1.0.1"
}
}
```

0 comments on commit 31b1108

Please sign in to comment.