vike 0.4.253-commit-6255ff2 → 0.4.253-commit-468c8a0

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.
@@ -182,9 +182,11 @@ async function transpileWithEsbuild(filePath, userRootDir, transformImports, esb
182
182
  // - assertIsImportPathNpmPackage()
183
183
  // - isImportPathNpmPackage(str, { cannotBePathAlias: true })
184
184
  assertFilePathAbsoluteFilesystem(importPathResolved);
185
- // Non-script file (e.g. .svg, .css) => resolve to constant string so that files with
186
- // `meta.env: { config: true, client: true }` can also be loaded in Node.js
187
- if (!isScriptFile(importPathResolved)) {
185
+ // Non-script file (e.g. .svg, .css) or explicitly tagged as runtime-only
186
+ // (`import url from './logo.svg' with { type: 'runtime' }`) => resolve to
187
+ // constant string so that files with `env: { config: true, client: true }`
188
+ // can also be loaded in Node.js
189
+ if (!isScriptFile(importPathResolved) || args.with?.['type'] === 'runtime') {
188
190
  esbuildCache.vikeConfigDependencies.add(importPathResolved);
189
191
  return {
190
192
  path: importPathResolved,
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.253-commit-6255ff2";
1
+ export declare const PROJECT_VERSION: "0.4.253-commit-468c8a0";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.253-commit-6255ff2';
2
+ export const PROJECT_VERSION = '0.4.253-commit-468c8a0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.253-commit-6255ff2",
3
+ "version": "0.4.253-commit-468c8a0",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {