@windwalker-io/core 4.2.0 → 4.2.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.
- package/LICENSE +19 -19
- package/dist/debugger/Dashboard-Bm7ihi81.js +1 -0
- package/dist/debugger/Database-BGuRRq-L.js +36 -0
- package/dist/debugger/DefaultLayout-DviqbPNR.js +1 -0
- package/dist/debugger/Events-CNF6gvg0.js +1 -0
- package/dist/debugger/KeyValueTable-BfTkP1Rg.js +1 -0
- package/dist/debugger/Request-yQA1-Fkb.js +1 -0
- package/dist/debugger/Routing-C5mAPB17.js +1 -0
- package/dist/debugger/System-JFuNpoZY.js +1 -0
- package/dist/debugger/Timeline-Uii-K9v_.js +1 -0
- package/dist/debugger/debugger-ChQADeB6.js +2 -0
- package/dist/debugger/debugger.js +564 -0
- package/dist/debugger/system.min.js +5 -0
- package/dist/debugger/utilities-jMzguz3m.js +1 -0
- package/dist/debugger/vue-animate.min-BkEL-t1R.js +9 -0
- package/dist/debugger/windwalker-logo-h-w.svg +1 -0
- package/dist/debugger-console.css +6 -0
- package/dist/next.d.ts +112 -0
- package/dist/next.js +576 -0
- package/package.json +11 -4
- package/src/app/app.ts +43 -0
- package/src/asset-bundler.mjs +114 -114
- package/src/debugger/types/global.d.js +2 -2
- package/src/index.mjs +11 -11
- package/src/legacy/4.0/js-sync.mjs +74 -74
- package/src/next/fusion/index.ts +2 -2
- package/src/next/fusion/plugins/assets.ts +29 -29
- package/src/next/fusion/plugins/index.ts +3 -3
- package/src/next/fusion/plugins/systemjs.ts +66 -66
- package/src/next/fusion/processors/cloneAssets.ts +81 -81
- package/src/next/fusion/processors/cssModulize.ts +127 -105
- package/src/next/fusion/processors/index.ts +4 -4
- package/src/next/fusion/processors/installVendors.ts +178 -178
- package/src/next/fusion/processors/jsModulize.ts +293 -296
- package/src/next/index.ts +2 -2
- package/src/next/utilities/asset-sync.ts +47 -47
- package/src/next/utilities/crypto.ts +11 -11
- package/src/next/utilities/fs.ts +61 -61
- package/src/next/utilities/index.ts +5 -5
- package/src/next/utilities/modules.ts +17 -17
- package/bin/release.js +0 -47
- package/core/index.d.ts +0 -1
- package/core/index.html +0 -13
- package/core/lib/main.ts +0 -9
- package/core/package.json +0 -26
- package/core/public/vite.svg +0 -1
- package/core/src/main.ts +0 -23
- package/core/src/style.css +0 -95
- package/core/src/typescript.svg +0 -1
- package/core/src/vite-env.d.ts +0 -1
- package/postcss.config.js +0 -12
- package/tailwind/console.tailwind.config.cjs +0 -32
- package/tailwind.config.js +0 -10
- package/vite.config.debugger.ts +0 -94
- package/vite.config.next.ts +0 -75
package/vite.config.next.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { resolve } from 'node:path';
|
|
3
|
-
import { defineConfig } from 'vite';
|
|
4
|
-
import dtsPlugin from 'unplugin-dts/vite';
|
|
5
|
-
|
|
6
|
-
const dependencies = JSON.parse(readFileSync('./package.json', 'utf8')).dependencies || {};
|
|
7
|
-
|
|
8
|
-
export default defineConfig(({ mode }) => {
|
|
9
|
-
return {
|
|
10
|
-
resolve: {
|
|
11
|
-
alias: {
|
|
12
|
-
'@': resolve('./src')
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
build: {
|
|
16
|
-
lib: {
|
|
17
|
-
entry: './src/next/index.ts',
|
|
18
|
-
formats: ['es'],
|
|
19
|
-
name: 'next',
|
|
20
|
-
fileName: (format) => `next.js`
|
|
21
|
-
},
|
|
22
|
-
rollupOptions: {
|
|
23
|
-
// input: {
|
|
24
|
-
// next: './src/next/index.ts',
|
|
25
|
-
// },
|
|
26
|
-
output: {
|
|
27
|
-
// format: 'esm',
|
|
28
|
-
// preserveModules: false,
|
|
29
|
-
entryFileNames(chunkInfo) {
|
|
30
|
-
if (chunkInfo.name === 'index') {
|
|
31
|
-
return 'next.js';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return '[name].js';
|
|
35
|
-
},
|
|
36
|
-
assetFileNames(assetInfo) {
|
|
37
|
-
return 'chunks/[name]-[hash].[extname]';
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
preserveEntrySignatures: 'strict',
|
|
41
|
-
external: [
|
|
42
|
-
/^node:/,
|
|
43
|
-
/fusion-next/,
|
|
44
|
-
'rollup',
|
|
45
|
-
'vite',
|
|
46
|
-
'fast-glob',
|
|
47
|
-
'fs-extra',
|
|
48
|
-
'micromatch',
|
|
49
|
-
'is-glob',
|
|
50
|
-
...Object.keys(dependencies),
|
|
51
|
-
// 'util',
|
|
52
|
-
// 'stream',
|
|
53
|
-
// 'fs',
|
|
54
|
-
// 'os',
|
|
55
|
-
// 'path',
|
|
56
|
-
// 'path',
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
outDir: 'dist',
|
|
60
|
-
emptyOutDir: false,
|
|
61
|
-
minify: false,
|
|
62
|
-
},
|
|
63
|
-
plugins: [
|
|
64
|
-
dtsPlugin({
|
|
65
|
-
outDirs: 'dist',
|
|
66
|
-
tsconfigPath: './tsconfig.json',
|
|
67
|
-
insertTypesEntry: true,
|
|
68
|
-
// merge to 1 file
|
|
69
|
-
bundleTypes: true,
|
|
70
|
-
exclude: ['./src/*.mjs']
|
|
71
|
-
// include: ['./src/next/index.ts'],
|
|
72
|
-
}),
|
|
73
|
-
]
|
|
74
|
-
};
|
|
75
|
-
});
|