Fix type error exports is read only

This commit is contained in:
LordMathis 2020-01-09 23:51:27 +01:00
parent c7c46db413
commit c4bde27577
No known key found for this signature in database
GPG Key ID: 575849FD91CE470C
1 changed files with 4 additions and 5 deletions

View File

@ -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']
}
])
}