@katlux/toolkit 0.1.0-beta.68 → 0.1.0-beta.70
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.cjs +0 -11
- package/dist/module.json +1 -1
- package/dist/module.mjs +0 -11
- package/package.json +1 -1
package/dist/module.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const kit = require('@nuxt/kit');
|
|
4
4
|
const node_fs = require('node:fs');
|
|
5
|
-
const node_module = require('node:module');
|
|
6
5
|
|
|
7
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
8
7
|
const module$1 = kit.defineNuxtModule({
|
|
@@ -39,16 +38,6 @@ const module$1 = kit.defineNuxtModule({
|
|
|
39
38
|
watchOptions.usePolling = true;
|
|
40
39
|
watchOptions.interval = 1e3;
|
|
41
40
|
watchOptions.ignored = sharedIgnored;
|
|
42
|
-
try {
|
|
43
|
-
const _require = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('module.cjs', document.baseURI).href)));
|
|
44
|
-
const clientPath = _require.resolve("@katlux/providers/dist/nuxtAppCompat.mjs");
|
|
45
|
-
const serverPath = clientPath.replace("nuxtAppCompat.mjs", "nuxtAppCompat.server.mjs");
|
|
46
|
-
if (node_fs.existsSync(serverPath)) {
|
|
47
|
-
const nitroAlias = nuxt.options.nitro.alias = nuxt.options.nitro.alias || {};
|
|
48
|
-
nitroAlias[clientPath] = serverPath;
|
|
49
|
-
}
|
|
50
|
-
} catch {
|
|
51
|
-
}
|
|
52
41
|
nuxt.hook("vite:extendConfig", (config) => {
|
|
53
42
|
const server = config.server || (config.server = {});
|
|
54
43
|
const watch = server.watch || (server.watch = {});
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addComponentsDir, addImportsDir, addPlugin } from '@nuxt/kit';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
|
-
import { createRequire } from 'node:module';
|
|
4
3
|
|
|
5
4
|
const module$1 = defineNuxtModule({
|
|
6
5
|
meta: {
|
|
@@ -36,16 +35,6 @@ const module$1 = defineNuxtModule({
|
|
|
36
35
|
watchOptions.usePolling = true;
|
|
37
36
|
watchOptions.interval = 1e3;
|
|
38
37
|
watchOptions.ignored = sharedIgnored;
|
|
39
|
-
try {
|
|
40
|
-
const _require = createRequire(import.meta.url);
|
|
41
|
-
const clientPath = _require.resolve("@katlux/providers/dist/nuxtAppCompat.mjs");
|
|
42
|
-
const serverPath = clientPath.replace("nuxtAppCompat.mjs", "nuxtAppCompat.server.mjs");
|
|
43
|
-
if (existsSync(serverPath)) {
|
|
44
|
-
const nitroAlias = nuxt.options.nitro.alias = nuxt.options.nitro.alias || {};
|
|
45
|
-
nitroAlias[clientPath] = serverPath;
|
|
46
|
-
}
|
|
47
|
-
} catch {
|
|
48
|
-
}
|
|
49
38
|
nuxt.hook("vite:extendConfig", (config) => {
|
|
50
39
|
const server = config.server || (config.server = {});
|
|
51
40
|
const watch = server.watch || (server.watch = {});
|