Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Add babel plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
travis-r6s committed May 29, 2020
1 parent dbfb2b8 commit 607c0b4
Show file tree
Hide file tree
Showing 4 changed files with 973 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
["@babel/env", {"modules": false}]
]
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
"build": "rollup --config"
},
"dependencies": {
"@babel/core": "^7.10.1",
"@babel/preset-env": "^7.10.1",
"got": "^11.1.4"
},
"devDependencies": {
"@rollup/plugin-babel": "^5.0.2",
"@rollup/plugin-node-resolve": "^8.0.0",
"eslint-config-travisreynolds-node": "^1.1.8",
"rollup": "^2.11.2"
}
Expand Down
9 changes: 8 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import resolve from '@rollup/plugin-node-resolve'
import babel from '@rollup/plugin-babel'

export default {
input: 'src/index.js',
output: {
file: 'lib/gridsome.server.js',
format: 'cjs'
}
},
plugins: [
resolve(),
babel({ babelHelpers: 'bundled' })
]
}
Loading

0 comments on commit 607c0b4

Please sign in to comment.