@nuxt/bridge-edge 0.0.0-27219973.eb03321 → 0.0.0-27220001.9503d62
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/dist/module.mjs +16 -1
- package/package.json +4 -4
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module';
|
|
2
|
-
import { useNuxt, addPluginTemplate, resolveModule, addPlugin, addVitePlugin, addWebpackPlugin, extendWebpackConfig, defineNuxtModule, addTemplate, resolveAlias, installModule } from '@nuxt/kit';
|
|
2
|
+
import { useNuxt, addPluginTemplate, resolveModule, addPlugin, addVitePlugin, addWebpackPlugin, extendWebpackConfig, defineNuxtModule, addTemplate, resolveAlias, installModule, checkNuxtCompatibilityIssues } from '@nuxt/kit';
|
|
3
3
|
import fs, { promises } from 'fs';
|
|
4
4
|
import fetch from 'node-fetch';
|
|
5
5
|
import { stringifyQuery, parseURL, parseQuery } from 'ufo';
|
|
@@ -686,6 +686,7 @@ const module = defineNuxtModule({
|
|
|
686
686
|
app: {},
|
|
687
687
|
capi: {},
|
|
688
688
|
globalImports: true,
|
|
689
|
+
constraints: true,
|
|
689
690
|
postcss8: true,
|
|
690
691
|
swc: true,
|
|
691
692
|
resolve: true
|
|
@@ -719,6 +720,20 @@ const module = defineNuxtModule({
|
|
|
719
720
|
if (opts.resolve) {
|
|
720
721
|
setupBetterResolve();
|
|
721
722
|
}
|
|
723
|
+
if (opts.constraints) {
|
|
724
|
+
nuxt.hook("modules:done", (moduleContainer) => {
|
|
725
|
+
for (const [name, m] of Object.entries(moduleContainer.requiredModules || {})) {
|
|
726
|
+
const requires = m?.handler?.meta?.requires;
|
|
727
|
+
if (requires) {
|
|
728
|
+
const issues = checkNuxtCompatibilityIssues(requires, nuxt);
|
|
729
|
+
if (issues.length) {
|
|
730
|
+
console.warn(`[bridge] Detected module incompatibility issues for \`${name}\`:
|
|
731
|
+
` + issues.toString());
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
}
|
|
722
737
|
}
|
|
723
738
|
});
|
|
724
739
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/bridge-edge",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-27220001.9503d62",
|
|
4
4
|
"repository": "nuxt/framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"prepack": "unbuild"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@nuxt/kit": "npm:@nuxt/kit-edge@0.10.0-
|
|
18
|
-
"@nuxt/nitro": "npm:@nuxt/nitro-edge@0.10.0-
|
|
17
|
+
"@nuxt/kit": "npm:@nuxt/kit-edge@0.10.0-27220001.9503d62",
|
|
18
|
+
"@nuxt/nitro": "npm:@nuxt/nitro-edge@0.10.0-27220001.9503d62",
|
|
19
19
|
"@nuxt/postcss8": "^1.1.3",
|
|
20
20
|
"@vue/composition-api": "^1.2.2",
|
|
21
21
|
"acorn": "^8.5.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"magic-string": "^0.25.7",
|
|
27
27
|
"mlly": "^0.2.4",
|
|
28
28
|
"node-fetch": "^3.0.0",
|
|
29
|
-
"nuxi": "npm:nuxi-edge@0.10.0-
|
|
29
|
+
"nuxi": "npm:nuxi-edge@0.10.0-27220001.9503d62",
|
|
30
30
|
"nuxt-swc": "^0.1.0",
|
|
31
31
|
"nuxt-vite": "^0.3.2",
|
|
32
32
|
"pathe": "^0.2.0",
|