Alex Dima 6 年之前
父节点
当前提交
ca9e6a49ed
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      index.js
  2. 1 1
      test/webpack.config.js

+ 2 - 1
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 = {

+ 1 - 1
test/webpack.config.js

@@ -16,6 +16,6 @@ module.exports = {
         }]
     },
     plugins: [
-        new MonacoWebpackPlugin({features: ['!contextmenu']})
+        new MonacoWebpackPlugin()
     ]
 };