@jsenv/core 40.10.0 → 40.11.0
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/dist/build/browserslist_index/browserslist_index.js +22 -3
- package/dist/build/build.js +97 -33
- package/dist/{js → client/import_meta_css}/import_meta_css.js +15 -11
- package/dist/{js → client/import_meta_css}/import_meta_css_build.js +7 -7
- package/dist/start_dev_server/start_dev_server.js +21 -5
- package/package.json +5 -4
- package/src/build/build.js +76 -28
- package/src/kitchen/errors.js +5 -0
- package/src/kitchen/kitchen.js +6 -2
- package/src/plugins/protocol_file/jsenv_plugin_protocol_file.js +7 -0
- /package/dist/{js → client/drop_to_open}/drop_to_open.js +0 -0
|
@@ -95,6 +95,10 @@ export const jsenvPluginProtocolFile = ({
|
|
|
95
95
|
return null;
|
|
96
96
|
}
|
|
97
97
|
const { firstReference } = urlInfo;
|
|
98
|
+
if (!firstReference) {
|
|
99
|
+
console.warn("No firstReference for", urlInfo.url);
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
98
102
|
let { fsStat } = firstReference;
|
|
99
103
|
if (!fsStat) {
|
|
100
104
|
fsStat = readEntryStatSync(urlInfo.url, { nullIfNotFound: true });
|
|
@@ -123,6 +127,9 @@ export const jsenvPluginProtocolFile = ({
|
|
|
123
127
|
return null;
|
|
124
128
|
}
|
|
125
129
|
const { firstReference } = urlInfo;
|
|
130
|
+
if (!firstReference) {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
126
133
|
let { fsStat } = firstReference;
|
|
127
134
|
if (!fsStat) {
|
|
128
135
|
fsStat = readEntryStatSync(urlInfo.url, { nullIfNotFound: true });
|
|
File without changes
|