vike 0.4.251-commit-9c5fb90 → 0.4.252-commit-7f781cf

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.
@@ -21,19 +21,18 @@ const PUBLIC_ENV_ALLOWLIST = [
21
21
  // - For it to work, we'll probably need the user to define the settings (e.g. `envDir`) for loadEnv() inside vike.config.js instead of vite.config.js
22
22
  // - Or stop using Vite's `mode` implementation and have Vike implement its own `mode` feature? (So that the only dependencies are `$ vike build --mode staging` and `$ MODE=staging vike build`.)
23
23
  // === Rolldown filter
24
- const skipNodeModules = '/node_modules/';
25
24
  const skipIrrelevant = 'import.meta.env.';
26
25
  const filterRolldown = {
26
+ /* We don't do that, because vike-react-sentry uses import.meta.env.PUBLIC_ENV__SENTRY_DSN
27
27
  id: {
28
- exclude: `**${skipNodeModules}**`,
28
+ exclude: `**${'/node_modules/'}**`,
29
29
  },
30
+ */
30
31
  code: {
31
32
  include: skipIrrelevant,
32
33
  },
33
34
  };
34
- const filterFunction = (id, code) => {
35
- if (id.includes(skipNodeModules))
36
- return false;
35
+ const filterFunction = (code) => {
37
36
  if (!code.includes(skipIrrelevant))
38
37
  return false;
39
38
  return true;
@@ -62,10 +61,7 @@ function pluginReplaceConstantsEnvVars() {
62
61
  handler(code, id, options) {
63
62
  id = normalizeId(id);
64
63
  assertPosixPath(id);
65
- assertPosixPath(config.root);
66
- if (!id.startsWith(config.root))
67
- return; // skip linked dependencies
68
- assert(filterFunction(id, code));
64
+ assert(filterFunction(code));
69
65
  const isBuild = config.command === 'build';
70
66
  const isClientSide = !isViteServerSide_extraSafe(config, this.environment, options);
71
67
  const { magicString, getMagicStringResult } = getMagicString(code, id);
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.251-commit-9c5fb90";
1
+ export declare const PROJECT_VERSION: "0.4.252-commit-7f781cf";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.251-commit-9c5fb90';
2
+ export const PROJECT_VERSION = '0.4.252-commit-7f781cf';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.251-commit-9c5fb90",
3
+ "version": "0.4.252-commit-7f781cf",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {