fix #789 async/await babel runtime generator error, use regenerator-runtime

This commit is contained in:
Hans Pagel 2020-08-11 11:21:52 +02:00
parent e3058f7cfa
commit 1b7c977c47
6 changed files with 4 additions and 5 deletions

View File

@ -6,6 +6,5 @@ module.exports = {
],
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-runtime',
],
}

View File

@ -35,7 +35,6 @@ function genConfig(opts) {
}),
babel({
exclude: 'node_modules/**',
runtimeHelpers: true,
}),
],
external(id) { return !/^[\.\/]/.test(id) },

View File

@ -29,7 +29,6 @@
"@babel/plugin-transform-runtime": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@babel/preset-stage-2": "^7.0.0",
"@babel/runtime": "^7.7.4",
"audit-ci": "^2.4.2",
"autoprefixer": "^9.7.3",
"babel-core": "^7.0.0-bridge.0",

View File

@ -30,6 +30,7 @@
"prosemirror-transform": "^1.2.7",
"prosemirror-utils": "^0.9.6",
"prosemirror-view": "^1.15.2",
"regenerator-runtime": "^0.13.7",
"tiptap": "^1.29.4",
"tiptap-commands": "^1.14.4"
},

View File

@ -1,6 +1,7 @@
import { Plugin, PluginKey } from 'prosemirror-state'
import { Decoration, DecorationSet } from 'prosemirror-view'
import { insertText } from 'tiptap-commands'
import 'regenerator-runtime/runtime'
// Create a matcher that matches when a specific character is typed. Useful for @mentions and #tags.
function triggerCharacter({

View File

@ -830,7 +830,7 @@
pirates "^4.0.0"
source-map-support "^0.5.16"
"@babel/runtime@^7.7.4", "@babel/runtime@^7.8.4":
"@babel/runtime@^7.8.4":
version "7.11.2"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.11.2.tgz#f549c13c754cc40b87644b9fa9f09a6a95fe0736"
integrity sha512-TeWkU52so0mPtDcaCTxNBI/IHiz0pZgr8VEFqXFtZWpYD08ZB6FaSwVAS8MKRQAP3bYKiVjwysOJgMFY28o6Tw==
@ -11030,7 +11030,7 @@ regenerator-runtime@^0.11.0:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==
regenerator-runtime@^0.13.3, regenerator-runtime@^0.13.4:
regenerator-runtime@^0.13.3, regenerator-runtime@^0.13.4, regenerator-runtime@^0.13.7:
version "0.13.7"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==