diff options
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 3c1d7cbf631..0d759de4900 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -473,9 +473,7 @@ module.exports = { new VueLoaderPlugin(), // automatically configure monaco editor web workers - new MonacoWebpackPlugin({ - globalAPI: true, - }), + new MonacoWebpackPlugin(), new GraphqlKnownOperationsPlugin({ filename: 'graphql_known_operations.yml' }), @@ -557,6 +555,11 @@ module.exports = { ); }), + new webpack.NormalModuleReplacementPlugin(/markdown-it/, (resource) => { + // eslint-disable-next-line no-param-reassign + resource.request = path.join(ROOT_PATH, 'app/assets/javascripts/lib/markdown_it.js'); + }), + !IS_JH && new webpack.NormalModuleReplacementPlugin(/^jh_component\/(.*)\.vue/, (resource) => { // eslint-disable-next-line no-param-reassign |