From 8c41a4d1e378ccbc2d5a08a16bd08ab0cd173d92 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Sat, 19 Nov 2022 21:49:42 +0200 Subject: [PATCH] fix build script --- wax-prosemirror-services/rollup.config.js | 7 +++++++ .../src/MathService/plugins/math-nodeview.js | 7 +++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/wax-prosemirror-services/rollup.config.js b/wax-prosemirror-services/rollup.config.js index 2a6eb41aa..4fda92e21 100644 --- a/wax-prosemirror-services/rollup.config.js +++ b/wax-prosemirror-services/rollup.config.js @@ -21,6 +21,12 @@ export default { babel({ presets: ['react-app'], plugins: [ + [ + '@babel/plugin-transform-runtime', + { + regenerator: true, + }, + ], ['@babel/plugin-proposal-decorators', { legacy: true }], 'babel-plugin-parameter-decorator', ], @@ -40,5 +46,6 @@ export default { 'prosemirror-schema-list', 'prosemirror-model', 'prosemirror-inputrules', + '@babel/runtime/regenerator', ], }; diff --git a/wax-prosemirror-services/src/MathService/plugins/math-nodeview.js b/wax-prosemirror-services/src/MathService/plugins/math-nodeview.js index 04dd5c4e8..9f33bec71 100644 --- a/wax-prosemirror-services/src/MathService/plugins/math-nodeview.js +++ b/wax-prosemirror-services/src/MathService/plugins/math-nodeview.js @@ -15,12 +15,11 @@ import { mathjax } from 'mathjax-full/js/mathjax'; import { TeX } from 'mathjax-full/js/input/tex.js'; import { SVG } from 'mathjax-full/js/output/svg'; import { liteAdaptor } from 'mathjax-full/js/adaptors/liteAdaptor.js'; -import { browserAdaptor } from 'mathjax-full/js/adaptors/browserAdaptor'; import { RegisterHTMLHandler } from 'mathjax-full/js/handlers/html'; -import { AssistiveMmlHandler } from 'mathjax-full/js/a11y/assistive-mml.js'; - import { AllPackages } from 'mathjax-full/js/input/tex/AllPackages.js'; -import { STATE } from 'mathjax-full/js/core/MathItem'; +// import { browserAdaptor } from 'mathjax-full/js/adaptors/browserAdaptor'; +// import { AssistiveMmlHandler } from 'mathjax-full/js/a11y/assistive-mml.js'; +// import { STATE } from 'mathjax-full/js/core/MathItem'; // // Minimal CSS needed for stand-alone image -- GitLab