mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +03:00
fix: fix build caused by new babel decorators syntax, fixes #487
This commit is contained in:
parent
42cf18edb3
commit
01f575cc73
|
@ -31,7 +31,7 @@ const babelLoader = mode => ({
|
|||
options: {
|
||||
plugins: compact([
|
||||
'@babel/plugin-syntax-typescript',
|
||||
'@babel/plugin-syntax-decorators',
|
||||
['@babel/plugin-syntax-decorators', { legacy: true }],
|
||||
'@babel/plugin-syntax-jsx',
|
||||
mode !== 'production' ? 'react-hot-loader/babel' : undefined,
|
||||
[
|
||||
|
|
|
@ -77,7 +77,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
|
|||
options: {
|
||||
plugins: [
|
||||
'@babel/plugin-syntax-typescript',
|
||||
'@babel/plugin-syntax-decorators',
|
||||
['@babel/plugin-syntax-decorators', { legacy: true }],
|
||||
'@babel/plugin-syntax-jsx',
|
||||
[
|
||||
'babel-plugin-styled-components',
|
||||
|
|
Loading…
Reference in New Issue
Block a user