@omnia/tooling-vue 8.0.153-dev → 8.0.154-dev

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.
@@ -36,6 +36,7 @@ function toFileGraphId(unknownId) {
36
36
  id = utils_1.pathUtils.resolveTsPath(id);
37
37
  }
38
38
  if (path_1.default.isAbsolute(id)) {
39
+ // return '.' + normalizePath(id.replace(normalizePath(envUtils.getRootDirPath()), ''));
39
40
  return '.' + (0, vite_1.normalizePath)(utils_1.pathUtils.normalizeRelativePath(id));
40
41
  }
41
42
  if (id.startsWith('/')) {
@@ -50,6 +51,7 @@ function toModuleId(unknownId) {
50
51
  id = utils_1.pathUtils.resolveTsPath(id);
51
52
  }
52
53
  if (path_1.default.isAbsolute(id)) {
54
+ // return '.' + normalizePath(id.replace(normalizePath(envUtils.getRootDirPath()), ''));
53
55
  return (0, vite_1.normalizePath)(utils_1.pathUtils.normalizeRelativePath(id));
54
56
  }
55
57
  if (id.startsWith('./')) {
@@ -101,7 +101,10 @@ function setupHmrPlugin(options, config) {
101
101
  const fileGraph = graph.getFileGraph(source);
102
102
  const resolver = resolvers.find(resolver => resolver.test(pathname, importer, fileGraph, runtimeContext, fromWorker));
103
103
  if (resolver) {
104
- return utils_1.pathUtils.normalizeRelativePath(await resolver.resolve(pathname, importer, fileGraph, runtimeContext, fromWorker));
104
+ return resolver.resolve(pathname, importer, fileGraph, runtimeContext, fromWorker);
105
+ // const resolvedPath = await resolver.resolve(pathname, importer, fileGraph, runtimeContext, fromWorker);
106
+ // console.log("resolved path", resolvedPath, pathUtils.normalizeRelativePath(resolvedPath))
107
+ // return pathUtils.normalizeRelativePath(resolvedPath);
105
108
  }
106
109
  return source;
107
110
  },
@@ -159,6 +159,7 @@ function resolveRawPath(rawPath, id, external) {
159
159
  }
160
160
  if (dependencyFilePath) {
161
161
  dependencyFilePath = pathUtils.normalizeRelativePath(dependencyFilePath);
162
+ // dependencyFilePath = dependencyFilePath.replace(normalizePath(envUtils.getRootDirPath()), '');
162
163
  if (dependencyFilePath.startsWith('/')) {
163
164
  dependencyFilePath = '.' + dependencyFilePath;
164
165
  }
@@ -16,6 +16,7 @@ function getTsConfig() {
16
16
  if (!_tsConfig) {
17
17
  const value = require(envUtils.getTsConfigPath());
18
18
  const resolvedBaseUrl = path_1.default.join(envUtils.getRootDirPath(), value.compilerOptions.baseUrl);
19
+ // value.compilerOptions.baseUrl = normalizePath(resolvedBaseUrl.replace(envUtils.getRootDirPath(), ''));
19
20
  value.compilerOptions.baseUrl = (0, vite_1.normalizePath)(normalizeRelativePath(resolvedBaseUrl));
20
21
  _tsConfig = value;
21
22
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-vue",
3
3
  "license": "MIT",
4
- "version": "8.0.153-dev",
4
+ "version": "8.0.154-dev",
5
5
  "description": "Used to bundle and serve manifests web component that build on Vue framework.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.153-dev",
23
- "@omnia/tooling-composers": "8.0.153-dev",
22
+ "@omnia/fx-models": "8.0.154-dev",
23
+ "@omnia/tooling-composers": "8.0.154-dev",
24
24
  "@types/mousetrap": "1.5.34",
25
25
  "@types/quill": "1.3.6",
26
26
  "@types/zepto": "1.0.29",