Skip to content

Commit

Permalink
fix #789 async/await babel runtime generator error, use regenerator-r…
Browse files Browse the repository at this point in the history
…untime
  • Loading branch information
hanspagel committed Aug 11, 2020
1 parent e3058f7 commit 1b7c977
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ module.exports = {
],
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-runtime',
],
}
1 change: 0 additions & 1 deletion build/packages/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function genConfig(opts) {
}),
babel({
exclude: 'node_modules/**',
runtimeHelpers: true,
}),
],
external(id) { return !/^[\.\/]/.test(id) },
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/tiptap-extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions packages/tiptap-extensions/src/plugins/Suggestions.js
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit 1b7c977

Please sign in to comment.