vike 0.4.253-commit-468c8a0 → 0.4.253-commit-aa63f56

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,11 +182,9 @@ 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) 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') {
185
+ // Non-script file (e.g. .svg, .css) => resolve to constant string so that files with
186
+ // `env: { config: true, client: true }` can also be loaded in Node.js
187
+ if (!isScriptFile(importPathResolved)) {
190
188
  esbuildCache.vikeConfigDependencies.add(importPathResolved);
191
189
  return {
192
190
  path: importPathResolved,
@@ -203,7 +201,9 @@ async function transpileWithEsbuild(filePath, userRootDir, transformImports, esb
203
201
  // - In principle, we can use the setting 'name' value of Vike extensions.
204
202
  // - vike@0.4.162 started soft-requiring Vike extensions to set the name config.
205
203
  // - In practice, it seems like it requires some (non-trivial?) refactoring.
206
- isVikeExtensionImport;
204
+ isVikeExtensionImport ||
205
+ // Explicitly tagged as runtime code => pointer import
206
+ args.with?.['type'] === 'runtime';
207
207
  assertPosixPath(importPathResolved);
208
208
  // `isNpmPkgImport` => `importPathOriginal` is most likely an npm package import, but it can also be a path alias that a) looks like an npm package import and b) resolves outside of `userRootDir`.
209
209
  const isNpmPkgImport = (() => {
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.253-commit-468c8a0";
1
+ export declare const PROJECT_VERSION: "0.4.253-commit-aa63f56";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.253-commit-468c8a0';
2
+ export const PROJECT_VERSION = '0.4.253-commit-aa63f56';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.253-commit-468c8a0",
3
+ "version": "0.4.253-commit-aa63f56",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {