Use import instead of requrie
This commit is contained in:
parent
87a914b197
commit
46cb593bbb
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,9 @@ import {contentRegistry} from './contentRegistry'
|
|||
|
||||
// Need to require here to prevent webpack from tree-shaking these away
|
||||
// TODO: Update webpack to avoid this
|
||||
require('./textElement')
|
||||
require('./imageElement')
|
||||
require('./dividerElement')
|
||||
import './textElement'
|
||||
import './imageElement'
|
||||
import './dividerElement'
|
||||
|
||||
type Props = {
|
||||
block: IContentBlock
|
||||
|
|
Loading…
Reference in a new issue