mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-12 07:50:34 +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: {
|
options: {
|
||||||
plugins: compact([
|
plugins: compact([
|
||||||
'@babel/plugin-syntax-typescript',
|
'@babel/plugin-syntax-typescript',
|
||||||
'@babel/plugin-syntax-decorators',
|
['@babel/plugin-syntax-decorators', { legacy: true }],
|
||||||
'@babel/plugin-syntax-jsx',
|
'@babel/plugin-syntax-jsx',
|
||||||
mode !== 'production' ? 'react-hot-loader/babel' : undefined,
|
mode !== 'production' ? 'react-hot-loader/babel' : undefined,
|
||||||
[
|
[
|
||||||
|
|
|
@ -77,7 +77,7 @@ export default (env: { standalone?: boolean } = {}, { mode }) => ({
|
||||||
options: {
|
options: {
|
||||||
plugins: [
|
plugins: [
|
||||||
'@babel/plugin-syntax-typescript',
|
'@babel/plugin-syntax-typescript',
|
||||||
'@babel/plugin-syntax-decorators',
|
['@babel/plugin-syntax-decorators', { legacy: true }],
|
||||||
'@babel/plugin-syntax-jsx',
|
'@babel/plugin-syntax-jsx',
|
||||||
[
|
[
|
||||||
'babel-plugin-styled-components',
|
'babel-plugin-styled-components',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user