From c4bde275775dc68a4f632b0bb6fc76ba6b5d25ea Mon Sep 17 00:00:00 2001 From: LordMathis Date: Thu, 9 Jan 2020 23:51:27 +0100 Subject: [PATCH] Fix type error exports is read only --- babel.config.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/babel.config.js b/babel.config.js index 100f654..4f8dd08 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,11 +1,10 @@ module.exports = function (api) { const presets = [ '@babel/preset-env', - '@babel/react' + '@babel/preset-react' ] const plugins = [ '@babel/plugin-proposal-object-rest-spread', - '@babel/plugin-transform-runtime', '@babel/plugin-transform-template-literals', '@babel/plugin-proposal-class-properties' ] @@ -13,9 +12,9 @@ module.exports = function (api) { if (api.env() === 'development') { plugins.push([ 'css-modules-transform', { - 'generateScopedName': '[name]__[local]___[hash:base64:5]', - 'preprocessCss': processSass, - 'extensions': ['.css', '.scss'] + generateScopedName: '[name]__[local]___[hash:base64:5]', + preprocessCss: processSass, + extensions: ['.css', '.scss'] } ]) }