Skip to content

Commit

Permalink
fix: allow to bundle slatejs
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-krysiak committed Oct 14, 2020
1 parent 49da96e commit 26d2c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cspell.json
Expand Up @@ -8,7 +8,7 @@
"camelize", "datepicker", "camelcase", "fullwidth", "wysiwig", "Helvetica", "Neue",
"Arial", "nowrap", "textfield", "scrollable", "flexbox", "treal", "xxxl",
"adminbro", "Checkmark", "overridable", "Postgres", "Hana", "Wojtek", "Krysiak", "bigint",
"borderless", "metadetaksamosone"
"borderless", "metadetaksamosone", "esrever"
],
"ignorePaths": [
"src/frontend/assets/**/*"
Expand Down
3 changes: 3 additions & 0 deletions src/backend/bundler/config.js
Expand Up @@ -8,6 +8,7 @@ const json = require('rollup-plugin-json')
const { terser } = require('rollup-plugin-terser')

const reactIsExport = ['isValidElementType', 'isContextConsumer', 'isElement', 'ForwardRef']
const esreverExport = ['reverse']

const external = [
'react',
Expand Down Expand Up @@ -77,6 +78,8 @@ const plugins = ({ babelConfig = {}, commonJSConfig = {}, minify = false } = {})
'node_modules/react-redux/node_modules/react-is/index.js': reactIsExport,
'@material-ui/utils/node_modules/react-is': reactIsExport,
'node_modules/react-is/index.js': reactIsExport,
'node_modules/esrever/esrever.js': esreverExport,
'../node_modules/esrever/esrever.js': esreverExport,
},
...commonJSConfig,
}),
Expand Down

0 comments on commit 26d2c52

Please sign in to comment.