improve dev server startup time

This commit is contained in:
Philipp Kühn
2020-10-01 21:14:00 +02:00
parent 660ff1c2d0
commit 412c43e086
5 changed files with 30 additions and 39 deletions

View File

@@ -75,7 +75,7 @@ module.exports = function (api) {
config.module
.rule('jsx')
.test(/\.jsx?$/)
.test(/\.jsx$/)
.use()
.loader('babel-loader')

View File

@@ -1,5 +1,5 @@
<template>
<div></div>
<div />
</template>
<script>

View File

@@ -1,4 +1,4 @@
import {
import React, {
useState, useRef, useEffect, createContext, useContext,
} from 'react'
import { Editor as Tiptap } from '@tiptap/core'

View File

@@ -1,4 +1,4 @@
import { useState } from 'react'
import React, { useState } from 'react'
import extensions from '@tiptap/starter-kit'
import { useEditor, Editor } from './components/Editor'