feat(v2): better splitchunks and babel default (#1653)

* feat(v2): better splitchunks and babel default

* common chunks

* chunks: all
This commit is contained in:
Endi 2019-07-14 00:38:48 +07:00 committed by Yangshun Tay
parent 9e9ad1f2b8
commit 22ce04d3fb
4 changed files with 23 additions and 19 deletions

View file

@ -18,6 +18,8 @@ import styles from './styles.module.css';
const Playground = LoadableVisibility({
loader: () => import('@theme/Playground'),
loading: Loading,
modules: ['@theme/Playground'],
webpack: () => [require.resolveWeak('@theme/Playground')],
});
export default ({children, className: languageClassName, live, ...props}) => {