astro 1.1.4 → 1.1.5
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/core/dev/index.js
CHANGED
|
@@ -46,7 +46,7 @@ async function dev(config, options) {
|
|
|
46
46
|
https: !!((_a = viteConfig.server) == null ? void 0 : _a.https)
|
|
47
47
|
})
|
|
48
48
|
);
|
|
49
|
-
const currentVersion = "1.1.
|
|
49
|
+
const currentVersion = "1.1.5";
|
|
50
50
|
if (currentVersion.includes("-")) {
|
|
51
51
|
warn(options.logging, null, msg.prerelease({ currentVersion }));
|
|
52
52
|
}
|
package/dist/core/messages.js
CHANGED
|
@@ -46,7 +46,7 @@ function devStart({
|
|
|
46
46
|
https,
|
|
47
47
|
site
|
|
48
48
|
}) {
|
|
49
|
-
const version = "1.1.
|
|
49
|
+
const version = "1.1.5";
|
|
50
50
|
const rootPath = site ? site.pathname : "/";
|
|
51
51
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
52
52
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
@@ -225,7 +225,7 @@ function printHelp({
|
|
|
225
225
|
message.push(
|
|
226
226
|
linebreak(),
|
|
227
227
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
228
|
-
`v${"1.1.
|
|
228
|
+
`v${"1.1.5"}`
|
|
229
229
|
)} ${headline}`
|
|
230
230
|
);
|
|
231
231
|
}
|
package/dist/core/util.js
CHANGED
|
@@ -5,7 +5,7 @@ import resolve from "resolve";
|
|
|
5
5
|
import slash from "slash";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
7
7
|
import { prependForwardSlash, removeTrailingForwardSlash } from "./path.js";
|
|
8
|
-
const ASTRO_VERSION = "1.1.
|
|
8
|
+
const ASTRO_VERSION = "1.1.5";
|
|
9
9
|
function isObject(value) {
|
|
10
10
|
return typeof value === "object" && value != null;
|
|
11
11
|
}
|
|
@@ -112,7 +112,7 @@ function jsx({ config, logging }) {
|
|
|
112
112
|
enforce: "pre",
|
|
113
113
|
async configResolved(resolvedConfig) {
|
|
114
114
|
viteConfig = resolvedConfig;
|
|
115
|
-
const possibleRenderers =
|
|
115
|
+
const possibleRenderers = collectJSXRenderers(config._ctx.renderers);
|
|
116
116
|
for (const [importSource, renderer] of possibleRenderers) {
|
|
117
117
|
jsxRenderers.set(importSource, renderer);
|
|
118
118
|
if (importSource === "astro") {
|
|
@@ -163,8 +163,8 @@ function jsx({ config, logging }) {
|
|
|
163
163
|
if (!importSource && IMPORT_KEYWORD_REGEX.test(code)) {
|
|
164
164
|
importSource = await detectImportSourceFromImports(code, id, jsxRenderers);
|
|
165
165
|
}
|
|
166
|
-
if (!importSource) {
|
|
167
|
-
const [defaultRendererName] = defaultJSXRendererEntry
|
|
166
|
+
if (!importSource && defaultJSXRendererEntry) {
|
|
167
|
+
const [defaultRendererName] = defaultJSXRendererEntry;
|
|
168
168
|
error(
|
|
169
169
|
logging,
|
|
170
170
|
"renderer",
|
|
@@ -173,6 +173,16 @@ Unable to resolve a renderer that handles this file! With more than one renderer
|
|
|
173
173
|
Add ${colors.cyan(
|
|
174
174
|
IMPORT_STATEMENTS[defaultRendererName] || `import '${defaultRendererName}';`
|
|
175
175
|
)} or ${colors.cyan(`/* jsxImportSource: ${defaultRendererName} */`)} to this file.
|
|
176
|
+
`
|
|
177
|
+
);
|
|
178
|
+
return null;
|
|
179
|
+
} else if (!importSource) {
|
|
180
|
+
error(
|
|
181
|
+
logging,
|
|
182
|
+
"renderer",
|
|
183
|
+
`${colors.yellow(id)}
|
|
184
|
+
Unable to find a renderer for JSX. Do you have one configured in your Astro config? See this page to learn how:
|
|
185
|
+
https://docs.astro.build/en/core-concepts/framework-components/#installing-integrations
|
|
176
186
|
`
|
|
177
187
|
);
|
|
178
188
|
return null;
|