Skip to content

Commit 1b7c977

Browse files
committed
fix ueberdosis#789 async/await babel runtime generator error, use regenerator-runtime
1 parent e3058f7 commit 1b7c977

File tree

6 files changed

+4
-5
lines changed

6 files changed

+4
-5
lines changed

babel.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ module.exports = {
66
],
77
plugins: [
88
'@babel/plugin-syntax-dynamic-import',
9-
'@babel/plugin-transform-runtime',
109
],
1110
}

build/packages/config.js

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function genConfig(opts) {
3535
}),
3636
babel({
3737
exclude: 'node_modules/**',
38-
runtimeHelpers: true,
3938
}),
4039
],
4140
external(id) { return !/^[\.\/]/.test(id) },

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@babel/plugin-transform-runtime": "^7.7.4",
3030
"@babel/preset-env": "^7.7.4",
3131
"@babel/preset-stage-2": "^7.0.0",
32-
"@babel/runtime": "^7.7.4",
3332
"audit-ci": "^2.4.2",
3433
"autoprefixer": "^9.7.3",
3534
"babel-core": "^7.0.0-bridge.0",

packages/tiptap-extensions/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"prosemirror-transform": "^1.2.7",
3131
"prosemirror-utils": "^0.9.6",
3232
"prosemirror-view": "^1.15.2",
33+
"regenerator-runtime": "^0.13.7",
3334
"tiptap": "^1.29.4",
3435
"tiptap-commands": "^1.14.4"
3536
},

packages/tiptap-extensions/src/plugins/Suggestions.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Plugin, PluginKey } from 'prosemirror-state'
22
import { Decoration, DecorationSet } from 'prosemirror-view'
33
import { insertText } from 'tiptap-commands'
4+
import 'regenerator-runtime/runtime'
45

56
// Create a matcher that matches when a specific character is typed. Useful for @mentions and #tags.
67
function triggerCharacter({

yarn.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@
830830
pirates "^4.0.0"
831831
source-map-support "^0.5.16"
832832

833-
"@babel/runtime@^7.7.4", "@babel/runtime@^7.8.4":
833+
"@babel/runtime@^7.8.4":
834834
version "7.11.2"
835835
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.11.2.tgz#f549c13c754cc40b87644b9fa9f09a6a95fe0736"
836836
integrity sha512-TeWkU52so0mPtDcaCTxNBI/IHiz0pZgr8VEFqXFtZWpYD08ZB6FaSwVAS8MKRQAP3bYKiVjwysOJgMFY28o6Tw==
@@ -11030,7 +11030,7 @@ regenerator-runtime@^0.11.0:
1103011030
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
1103111031
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==
1103211032

11033-
regenerator-runtime@^0.13.3, regenerator-runtime@^0.13.4:
11033+
regenerator-runtime@^0.13.3, regenerator-runtime@^0.13.4, regenerator-runtime@^0.13.7:
1103411034
version "0.13.7"
1103511035
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
1103611036
integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==

0 commit comments

Comments
 (0)