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) { module.exports = function (api) {
const presets = [ const presets = [
'@babel/preset-env', '@babel/preset-env',
'@babel/react' '@babel/preset-react'
] ]
const plugins = [ const plugins = [
'@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-template-literals', '@babel/plugin-transform-template-literals',
'@babel/plugin-proposal-class-properties' '@babel/plugin-proposal-class-properties'
] ]
@ -13,9 +12,9 @@ module.exports = function (api) {
if (api.env() === 'development') { if (api.env() === 'development') {
plugins.push([ plugins.push([
'css-modules-transform', { 'css-modules-transform', {
'generateScopedName': '[name]__[local]___[hash:base64:5]', generateScopedName: '[name]__[local]___[hash:base64:5]',
'preprocessCss': processSass, preprocessCss: processSass,
'extensions': ['.css', '.scss'] extensions: ['.css', '.scss']
} }
]) ])
} }