Skip to content

Commit

Permalink
add babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
aminick committed Mar 27, 2022
1 parent c5cc80d commit 5530de5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"env": {
"development": {
"plugins": [["styled-components", { "ssr": true }]],
"presets": ["next/babel"]
},
"production": {
"plugins": [["styled-components", { "ssr": true }]],
"presets": ["next/babel"]
}
},
"plugins": [["styled-components", { "ssr": true }]]
}
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ const withTM = require('next-transpile-modules')(['@amcharts/amcharts4/']);

module.exports = withPWA(
withTM({
compiler: {
styledComponents: true,
},
pwa: {
dest: 'public',
sw: 'service-worker.js',
Expand Down

0 comments on commit 5530de5

Please sign in to comment.