@museumwnf/viewer-core 1.15.0 → 1.15.1
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/package.json +1 -1
- package/src/testing/viteConfig.js +1 -19
package/package.json
CHANGED
|
@@ -8,9 +8,7 @@ import path from 'node:path'
|
|
|
8
8
|
*
|
|
9
9
|
* `dataPackage` is the npm package name, e.g. `'@museumwnf/islamicart-data'`.
|
|
10
10
|
* `inline` is an optional array of extra packages to inline in tests, beyond
|
|
11
|
-
* the required `'@museumwnf/viewer-core'` and `'@museumwnf/viewer-layout'
|
|
12
|
-
* (and, transitionally, their pre-#1722 `'@metanull/*'` spellings — see the
|
|
13
|
-
* comment on `test.server.deps.inline` below).
|
|
11
|
+
* the required `'@museumwnf/viewer-core'` and `'@museumwnf/viewer-layout'`.
|
|
14
12
|
* `plugins` is an optional array of Vite plugins (e.g. `@vitejs/plugin-vue`),
|
|
15
13
|
* which the site must supply because this package does not depend on them.
|
|
16
14
|
* `root` is an optional project root path (default `process.cwd()`); use it when
|
|
@@ -40,19 +38,10 @@ export function defineViewerConfig({
|
|
|
40
38
|
// The /i18n subpath is listed as well as the package: Vite pre-bundles a
|
|
41
39
|
// subpath as its own entry, and a second copy of the text module would be
|
|
42
40
|
// a second, empty set of texts for whatever imported it.
|
|
43
|
-
//
|
|
44
|
-
// Both the @museumwnf and @metanull spellings are listed: this list is
|
|
45
|
-
// matched against the *site's own* import specifier, which still says
|
|
46
|
-
// @metanull/* until every site completes its own move in
|
|
47
|
-
// metanull/inventory-app#1722. Matching only the new name silently stops
|
|
48
|
-
// excluding the package for every current consumer.
|
|
49
41
|
exclude: [
|
|
50
42
|
'@museumwnf/viewer-core',
|
|
51
43
|
'@museumwnf/viewer-core/i18n',
|
|
52
44
|
'@museumwnf/viewer-layout',
|
|
53
|
-
'@metanull/viewer-core',
|
|
54
|
-
'@metanull/viewer-core/i18n',
|
|
55
|
-
'@metanull/viewer-layout',
|
|
56
45
|
],
|
|
57
46
|
// The runtime deps reach the browser through those excluded packages, so
|
|
58
47
|
// the dev-server dependency scan cannot discover them until the website's
|
|
@@ -71,16 +60,9 @@ export function defineViewerConfig({
|
|
|
71
60
|
// processes the package instead of externalizing it, matched by the
|
|
72
61
|
// specifier the *importing site* actually wrote. viewer-layout's
|
|
73
62
|
// composed views import viewer-core, so the layout is processed too.
|
|
74
|
-
// Both scopes are listed for the same transitional reason as
|
|
75
|
-
// optimizeDeps.exclude above: sites still import @metanull/* until
|
|
76
|
-
// metanull/inventory-app#1722, so matching only @museumwnf/* would
|
|
77
|
-
// externalize this package for every current consumer, sending its
|
|
78
|
-
// raw .vue files to Node's loader instead of Vitest's transform.
|
|
79
63
|
inline: [
|
|
80
64
|
'@museumwnf/viewer-core',
|
|
81
65
|
'@museumwnf/viewer-layout',
|
|
82
|
-
'@metanull/viewer-core',
|
|
83
|
-
'@metanull/viewer-layout',
|
|
84
66
|
...inline,
|
|
85
67
|
],
|
|
86
68
|
},
|