@jsenv/core 27.0.0-alpha.86 → 27.0.0-alpha.87

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "27.0.0-alpha.86",
3
+ "version": "27.0.0-alpha.87",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -65,20 +65,10 @@
65
65
  "@babel/plugin-transform-modules-umd": "7.18.0",
66
66
  "@c88/v8-coverage": "0.1.1",
67
67
  "@financial-times/polyfill-useragent-normaliser": "2.0.1",
68
- "@jsenv/abort": "4.2.2",
69
- "@jsenv/ast": "1.1.0",
68
+ "@jsenv/ast": "1.1.1",
70
69
  "@jsenv/babel-plugins": "1.0.5",
71
- "@jsenv/filesystem": "4.0.9",
72
- "@jsenv/importmap": "1.2.0",
73
- "@jsenv/integrity": "0.0.1",
74
- "@jsenv/log": "2.0.0",
75
- "@jsenv/node-esm-resolution": "0.1.0",
76
- "@jsenv/server": "12.7.1",
77
- "@jsenv/uneval": "1.6.0",
78
- "@jsenv/sourcemap": "1.0.0",
79
- "@jsenv/utils": "2.0.0",
80
- "@jsenv/url-meta": "7.0.0",
81
- "@jsenv/urls": "1.2.5",
70
+ "@jsenv/log": "2.0.1",
71
+ "@jsenv/sourcemap": "1.0.1",
82
72
  "acorn-import-assertions": "1.8.0",
83
73
  "construct-style-sheets-polyfill": "3.1.0",
84
74
  "cuid": "2.1.8",
@@ -91,6 +81,7 @@
91
81
  "pidtree": "0.6.0",
92
82
  "regenerator-runtime": "0.13.9",
93
83
  "rollup": "2.75.6",
84
+ "string-width": "5.1.2",
94
85
  "strip-ansi": "7.0.1",
95
86
  "terser": "5.14.1",
96
87
  "v8-to-istanbul": "9.0.0",
@@ -99,14 +90,24 @@
99
90
  "devDependencies": {
100
91
  "@babel/eslint-parser": "7.18.2",
101
92
  "@babel/plugin-syntax-import-assertions": "7.17.12",
93
+ "@jsenv/abort": "4.2.3",
102
94
  "@jsenv/assert": "2.5.4",
103
95
  "@jsenv/eslint-config": "16.0.9",
104
96
  "@jsenv/file-size-impact": "12.1.13",
97
+ "@jsenv/filesystem": "4.0.10",
105
98
  "@jsenv/https-local": "1.1.0",
99
+ "@jsenv/importmap": "1.2.1",
106
100
  "@jsenv/importmap-node-module": "5.1.3",
101
+ "@jsenv/integrity": "0.0.1",
102
+ "@jsenv/node-esm-resolution": "0.1.0",
107
103
  "@jsenv/package-workspace": "0.2.1",
108
104
  "@jsenv/performance-impact": "2.2.11",
109
105
  "@jsenv/pwa": "5.0.0",
106
+ "@jsenv/server": "12.7.2",
107
+ "@jsenv/uneval": "1.6.0",
108
+ "@jsenv/url-meta": "7.0.0",
109
+ "@jsenv/urls": "1.2.6",
110
+ "@jsenv/utils": "2.0.1",
110
111
  "eslint": "8.17.0",
111
112
  "eslint-plugin-html": "6.2.0",
112
113
  "eslint-plugin-import": "2.26.0",
@@ -166,7 +166,6 @@ build ${entryPointKeys.length} entry points`)
166
166
  const prebuildTask = createTaskLog("prebuild", {
167
167
  disabled: infoLogsAreDisabled,
168
168
  })
169
- let urlCount = 0
170
169
  const prebuildRedirections = new Map()
171
170
  const rawGraphKitchen = createKitchen({
172
171
  signal,
@@ -180,14 +179,6 @@ build ${entryPointKeys.length} entry points`)
180
179
  writeGeneratedFiles,
181
180
  plugins: [
182
181
  ...plugins,
183
- {
184
- name: "jsenv:build_log",
185
- appliesDuring: { build: true },
186
- cooked: () => {
187
- urlCount++
188
- prebuildTask.setRightText(urlCount)
189
- },
190
- },
191
182
  {
192
183
  appliesDuring: "build",
193
184
  fetchUrlContent: (urlInfo, context) => {
@@ -58,6 +58,14 @@ export const jsenvPluginFileUrls = ({
58
58
  urlObject.pathname = pathname.slice(0, -1)
59
59
  }
60
60
  if (foundADirectory && directoryReferenceAllowed) {
61
+ if (
62
+ // ignore new URL second arg
63
+ reference.subtype === "new_url_second_arg" ||
64
+ // ignore root file url
65
+ reference.url === "file:///"
66
+ ) {
67
+ reference.shouldHandle = false
68
+ }
61
69
  reference.data.foundADirectory = true
62
70
  const directoryFacadeUrl = urlObject.href
63
71
  const directoryUrlRaw = preserveSymlinks
@@ -27,6 +27,9 @@ export const jsenvPluginUrlAnalysis = ({
27
27
  name: "jsenv:url_analysis",
28
28
  appliesDuring: "*",
29
29
  redirectUrl: (reference) => {
30
+ if (reference.shouldHandle !== undefined) {
31
+ return
32
+ }
30
33
  if (
31
34
  reference.specifier[0] === "#" &&
32
35
  // For Html, css and in general "#" refer to a ressource in the page