Skip to content

Commit

Permalink
use next.js babel preset, remove unused deps, update some
Browse files Browse the repository at this point in the history
  • Loading branch information
ggwadera committed May 5, 2021
1 parent 301a8df commit 4a53581
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 1,259 deletions.
8 changes: 2 additions & 6 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ const prismJs = [
]

module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-react',
'@babel/preset-typescript'
],
plugins: [prismJs, '@babel/syntax-dynamic-import']
presets: ['next/babel'],
plugins: [prismJs]
}
23 changes: 9 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@apollo/client": "^3.3.16",
"@prisma/client": "^2.21.2",
"@prisma/client": "^2.22.0",
"@quixo3/prisma-session-store": "^3.0.1",
"@sentry/browser": "^6.3.5",
"apollo-server-micro": "^2.24.0",
Expand All @@ -44,7 +44,6 @@
"gitdiff-parser": "^0.2.2",
"graphql": "^15.5.0",
"graphql-request": "^3.4.0",
"identity-obj-proxy": "^3.0.0",
"isomorphic-unfetch": "^3.1.0",
"lodash": "^4.17.20",
"mailgun-js": "^0.22.0",
Expand All @@ -66,20 +65,17 @@
"yup": "^0.32.8"
},
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.0",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.12.13",
"@graphql-codegen/cli": "^1.21.4",
"@graphql-codegen/typescript": "^1.21.0",
"@graphql-codegen/typescript-operations": "^1.17.16",
"@graphql-codegen/typescript-react-apollo": "^2.2.4",
"@graphql-codegen/typescript-resolvers": "^1.19.1",
"@jest/types": "^26.6.2",
"@mdx-js/loader": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^10.2.0",
"@storybook/addon-actions": "^6.2.9",
"@storybook/addon-storyshots": "^6.1.17",
"@storybook/addon-storyshots": "^6.2.9",
"@storybook/addon-storysource": "^6.2.9",
"@storybook/addon-viewport": "^6.2.9",
"@storybook/react": "^6.2.9",
Expand All @@ -91,28 +87,27 @@
"@types/lodash": "^4.14.168",
"@types/mailgun-js": "^0.22.11",
"@types/mdx-js__react": "^1.5.3",
"@types/node": "^15.0.1",
"@types/node": "^15.0.2",
"@types/node-fetch": "^2.5.10",
"@types/prismjs": "^1.16.5",
"@types/react": "^17.0.4",
"@types/react": "^17.0.5",
"@types/react-dom": "^17.0.0",
"@types/styled-jsx": "^2.2.8",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"@typescript-eslint/eslint-plugin": "^4.22.1",
"@typescript-eslint/parser": "^4.22.1",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"babel-plugin-prismjs": "^2.0.1",
"babel-preset-react-app": "^10.0.0",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-mdx": "^1.13.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"husky": "^6.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"prisma": "^2.21.2",
"prisma": "^2.22.0",
"react-test-renderer": "^17.0.1",
"remark-gfm": "^1.0.0",
"remark-slug": "^6.0.0",
Expand Down
Loading

0 comments on commit 4a53581

Please sign in to comment.