From ca9e6a49ed8f54619cb815f69429b140dd314e6e Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 23 Nov 2018 12:53:39 +0100 Subject: [PATCH] Fixes #52 --- index.js | 3 ++- test/webpack.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 3baae2b5..60783f03 100644 --- a/index.js +++ b/index.js @@ -105,8 +105,9 @@ function createLoaderRules(languages, features, workers, outputPath, publicPath) } if (workerPaths['html']) { - // handlebars and html share the same worker + // handlebars, razor and html share the same worker workerPaths['handlebars'] = workerPaths['html']; + workerPaths['razor'] = workerPaths['html']; } const globals = { diff --git a/test/webpack.config.js b/test/webpack.config.js index 3207a280..de575ad0 100644 --- a/test/webpack.config.js +++ b/test/webpack.config.js @@ -16,6 +16,6 @@ module.exports = { }] }, plugins: [ - new MonacoWebpackPlugin({features: ['!contextmenu']}) + new MonacoWebpackPlugin() ] };