Skip to content

Commit

Permalink
fix: babelConfig typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Mar 3, 2020
1 parent 99643c1 commit 701b1e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default [

## Babel options (Marko 5+)

If you are using Marko 5 with this plugin you can manually override the Babel configuration used by passing a `babelOptions` object along side the `@marko/webpack/loader`. By default Babels regular [config file resolution](https://babeljs.io/docs/en/config-files) will be used.
If you are using Marko 5 with this plugin you can manually override the Babel configuration used by passing a `babelConfig` object along side the `@marko/webpack/loader`. By default Babels regular [config file resolution](https://babeljs.io/docs/en/config-files) will be used.

```javascript
export default {
Expand All @@ -110,7 +110,7 @@ export default {
test: /\.marko$/,
loader: "@marko/webpack/loader",
options: {
babelOptions: {
babelConfig: {
presets: [
["@babel/preset-env", { node: "current" }]
]
Expand Down

0 comments on commit 701b1e4

Please sign in to comment.