@virmator/frontend 14.3.0 → 14.3.2

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.
@@ -47,6 +47,19 @@ export type OverrideCallback = (
47
47
  basePaths: Readonly<ConfigPaths>,
48
48
  ) => UserConfig | Promise<UserConfig>;
49
49
 
50
+ const externalDeps: string[] = [
51
+ /** These are specified, but not actually used in a browser, in `@augment-vir/common` exports. */
52
+ 'node:util',
53
+ 'node:path',
54
+ /** Imported in object-shape-tester but only in backend code. */
55
+ 'node:fs/promises',
56
+
57
+ /** This is specified, but not actually used in a browser, in `@augment-vir/test` exports. */
58
+ '@playwright/test',
59
+ /** For extra measure, also block playwright. */
60
+ 'playwright',
61
+ ];
62
+
50
63
  export function createBaseConfig({forGitHubPages, packageDirPath}: BaseConfigOptions): {
51
64
  baseConfig: UserConfig;
52
65
  basePaths: ConfigPaths;
@@ -75,20 +88,14 @@ export function createBaseConfig({forGitHubPages, packageDirPath}: BaseConfigOpt
75
88
  emptyOutDir: true,
76
89
  target,
77
90
  rollupOptions: {
78
- external: [
79
- /**
80
- * These are specified, but not actually used in a browser, in
81
- * `@augment-vir/common` exports.
82
- */
83
- 'node:util',
84
- 'node:path',
85
- ],
91
+ external: externalDeps,
86
92
  },
87
93
  },
88
94
  optimizeDeps: {
89
95
  esbuildOptions: {
90
96
  target,
91
97
  },
98
+ exclude: externalDeps,
92
99
  force: true,
93
100
  },
94
101
  esbuild: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/frontend",
3
- "version": "14.3.0",
3
+ "version": "14.3.2",
4
4
  "description": "Default frontend plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -38,7 +38,7 @@
38
38
  "@augment-vir/assert": "^31.52.0",
39
39
  "@augment-vir/common": "^31.52.0",
40
40
  "@augment-vir/node": "^31.52.0",
41
- "@virmator/core": "^14.3.0",
41
+ "@virmator/core": "^14.3.2",
42
42
  "mri": "^1.2.0"
43
43
  },
44
44
  "devDependencies": {