volar-service-html 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/out/index.js +2 -1
  2. package/package.json +3 -2
package/out/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.create = exports.getHtmlDocument = void 0;
4
4
  const html = require("vscode-html-languageservice");
5
- const path = require("path");
6
5
  const vscode_uri_1 = require("vscode-uri");
7
6
  const parserLs = html.getLanguageService();
8
7
  const htmlDocuments = new WeakMap();
@@ -247,6 +246,8 @@ function create({ languageId = 'html', useDefaultDataProvider = true, useCustomD
247
246
  const newData = [];
248
247
  for (const customDataPath of customData) {
249
248
  try {
249
+ const pathModuleName = 'path'; // avoid bundle
250
+ const { posix: path } = require(pathModuleName);
250
251
  const jsonPath = path.resolve(customDataPath);
251
252
  newData.push(html.newHTMLDataProvider(customDataPath, require(jsonPath)));
252
253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "volar-service-html",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "Integrate vscode-languageservice-html into Volar",
5
5
  "homepage": "https://github.com/volarjs/services/tree/master/packages/html",
6
6
  "bugs": "https://github.com/volarjs/services/issues",
@@ -29,6 +29,7 @@
29
29
  "vscode-uri": "^3.0.8"
30
30
  },
31
31
  "devDependencies": {
32
+ "@types/node": "latest",
32
33
  "vscode-languageserver-textdocument": "^1.0.11"
33
34
  },
34
35
  "peerDependencies": {
@@ -39,5 +40,5 @@
39
40
  "optional": true
40
41
  }
41
42
  },
42
- "gitHead": "3a59378715a959b433ca65700d2515d708469388"
43
+ "gitHead": "fdcd47eb5dc865999ac7ac610f8e0dfb458aca04"
43
44
  }