Fix type error exports is read only
This commit is contained in:
parent
c7c46db413
commit
c4bde27577
|
@ -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']
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue