@jsenv/core 38.1.0 → 38.1.1
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/README.md +8 -21
- package/dist/jsenv_core.js +3 -3
- package/package.json +1 -1
- package/src/build/build_specifier_manager.js +4 -4
package/README.md
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
1
|
# @jsenv/core [](https://www.npmjs.com/package/@jsenv/core)
|
|
2
2
|
|
|
3
|
-
Jsenv
|
|
4
|
-
It has naturally evolved to cover the core needs of a JavaScript project: developement, testing and building for production.
|
|
3
|
+
Jsenv is a tool to develop test and build projects using JavaScript. This tool makes a special effort to let you free to code as you want. Jsenv is simple, easy to understand and well documented.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
- :sparkles: Same developer experience on source files and test files.
|
|
8
|
-
- :exploding_head: Can execute tests on Chrome, Firefox, Safari and Node.js.
|
|
5
|
+
[Documentation for users](<https://github.com/jsenv/core/wiki/A)-Introduction>) · [Changelog](./CHANGELOG.md)
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
See also
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
- [Documentation for contributors](./docs/contributors/README.md)
|
|
10
|
+
- [Documentation for maintainers](./docs/maintainers/README.md)
|
|
11
|
+
|
|
12
|
+
<!-- # Installation
|
|
13
13
|
|
|
14
14
|
```console
|
|
15
15
|
npm install --save-dev @jsenv/core
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
_@jsenv/core_ is tested on Mac, Windows, Linux with Node.js 18.
|
|
19
|
-
Other operating systems and Node.js versions are not tested.
|
|
20
|
-
|
|
21
|
-
# Name
|
|
22
|
-
|
|
23
|
-
The name "jsenv" stands for JavaScript environments.<br />
|
|
24
|
-
"jsenv" without capital letter because "JSEnv" would be too painful to type.
|
|
25
|
-
|
|
26
|
-
# Logo
|
|
27
|
-
|
|
28
|
-
The logo is composed by the name at the center and two circles orbiting around it.
|
|
29
|
-
One of the circle is web browsers, the other is Node.js.
|
|
30
|
-
It represents the two JavaScript runtimes supported by jsenv.
|
|
31
|
-
|
|
32
|
-

|
|
19
|
+
Other operating systems and Node.js versions are not tested. -->
|
package/dist/jsenv_core.js
CHANGED
|
@@ -20926,7 +20926,7 @@ const createBuildSpecifierManager = ({
|
|
|
20926
20926
|
const urlInfo = finalKitchen.graph.getUrlInfo(finalUrl);
|
|
20927
20927
|
if (!urlInfo) {
|
|
20928
20928
|
logger.warn(
|
|
20929
|
-
|
|
20929
|
+
`${UNICODE.WARNING} remove resource hint because cannot find "${href}" in the graph`,
|
|
20930
20930
|
);
|
|
20931
20931
|
mutations.push(() => {
|
|
20932
20932
|
removeHtmlNode(node);
|
|
@@ -20937,7 +20937,7 @@ const createBuildSpecifierManager = ({
|
|
|
20937
20937
|
const rawUrlInfo = rawKitchen.graph.getUrlInfo(rawUrl);
|
|
20938
20938
|
if (rawUrlInfo && rawUrlInfo.data.bundled) {
|
|
20939
20939
|
logger.warn(
|
|
20940
|
-
|
|
20940
|
+
`${UNICODE.WARNING} remove resource hint on "${href}" because it was bundled`,
|
|
20941
20941
|
);
|
|
20942
20942
|
mutations.push(() => {
|
|
20943
20943
|
removeHtmlNode(node);
|
|
@@ -20945,7 +20945,7 @@ const createBuildSpecifierManager = ({
|
|
|
20945
20945
|
return;
|
|
20946
20946
|
}
|
|
20947
20947
|
logger.warn(
|
|
20948
|
-
|
|
20948
|
+
`${UNICODE.WARNING} remove resource hint on "${href}" because it is not used anymore`,
|
|
20949
20949
|
);
|
|
20950
20950
|
mutations.push(() => {
|
|
20951
20951
|
removeHtmlNode(node);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { createDetailedMessage } from "@jsenv/log";
|
|
2
|
+
import { createDetailedMessage, UNICODE } from "@jsenv/log";
|
|
3
3
|
import { comparePathnames } from "@jsenv/filesystem";
|
|
4
4
|
import { createMagicSource, generateSourcemapFileUrl } from "@jsenv/sourcemap";
|
|
5
5
|
import {
|
|
@@ -790,7 +790,7 @@ export const createBuildSpecifierManager = ({
|
|
|
790
790
|
const urlInfo = finalKitchen.graph.getUrlInfo(finalUrl);
|
|
791
791
|
if (!urlInfo) {
|
|
792
792
|
logger.warn(
|
|
793
|
-
|
|
793
|
+
`${UNICODE.WARNING} remove resource hint because cannot find "${href}" in the graph`,
|
|
794
794
|
);
|
|
795
795
|
mutations.push(() => {
|
|
796
796
|
removeHtmlNode(node);
|
|
@@ -801,7 +801,7 @@ export const createBuildSpecifierManager = ({
|
|
|
801
801
|
const rawUrlInfo = rawKitchen.graph.getUrlInfo(rawUrl);
|
|
802
802
|
if (rawUrlInfo && rawUrlInfo.data.bundled) {
|
|
803
803
|
logger.warn(
|
|
804
|
-
|
|
804
|
+
`${UNICODE.WARNING} remove resource hint on "${href}" because it was bundled`,
|
|
805
805
|
);
|
|
806
806
|
mutations.push(() => {
|
|
807
807
|
removeHtmlNode(node);
|
|
@@ -809,7 +809,7 @@ export const createBuildSpecifierManager = ({
|
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
811
|
logger.warn(
|
|
812
|
-
|
|
812
|
+
`${UNICODE.WARNING} remove resource hint on "${href}" because it is not used anymore`,
|
|
813
813
|
);
|
|
814
814
|
mutations.push(() => {
|
|
815
815
|
removeHtmlNode(node);
|