@dpuse/dpuse-development 0.3.625 → 0.3.627
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-development",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.627",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Actions for managing DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"tsconfig.scripts.json",
|
|
40
40
|
"vite.config.default.ts",
|
|
41
41
|
"vite.config.tool.ts",
|
|
42
|
+
"vite.config.wasm.ts",
|
|
42
43
|
"vitest.config.ts"
|
|
43
44
|
],
|
|
44
45
|
"engines": {
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
"typescript-eslint": "^8.62.1",
|
|
93
94
|
"vite": "^8.1.2",
|
|
94
95
|
"vite-plugin-dts": "^5.0.3",
|
|
96
|
+
"vite-plugin-wasm": "^3.6.0",
|
|
95
97
|
"vitest": "^4.1.9"
|
|
96
98
|
}
|
|
97
99
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// ── External Dependencies & Registrations
|
|
2
|
+
import dts from 'vite-plugin-dts';
|
|
3
|
+
import Sonda from 'sonda/vite';
|
|
4
|
+
import { visualizer } from 'rollup-plugin-visualizer';
|
|
5
|
+
import wasm from 'vite-plugin-wasm';
|
|
6
|
+
import { defineConfig, type PluginOption } from 'vite';
|
|
7
|
+
import { fileURLToPath, URL } from 'node:url';
|
|
8
|
+
|
|
9
|
+
// ── Data
|
|
10
|
+
import config from './config.json';
|
|
11
|
+
|
|
12
|
+
// ── Initialisation ───────────────────────────────────────────────────────────────────────────────────────────────────
|
|
13
|
+
|
|
14
|
+
const wasmPlugin = wasm() as PluginOption;
|
|
15
|
+
|
|
16
|
+
// ── Vite Configuration ───────────────────────────────────────────────────────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
export default defineConfig({
|
|
19
|
+
build: {
|
|
20
|
+
lib: {
|
|
21
|
+
entry: fileURLToPath(new URL('src/index.ts', import.meta.url)),
|
|
22
|
+
fileName: (format) => `${config.id}.${format}.js`,
|
|
23
|
+
formats: ['es']
|
|
24
|
+
},
|
|
25
|
+
rollupOptions: {
|
|
26
|
+
plugins: [
|
|
27
|
+
Sonda({ filename: 'index', format: 'html', gzip: true, brotli: true, open: false, outputDir: './bundle-analysis-reports/sonda' }),
|
|
28
|
+
visualizer({ filename: './bundle-analysis-reports/rollup-visualiser/index.html', open: false, gzipSize: true, brotliSize: true }),
|
|
29
|
+
visualizer({ filename: './bundle-analysis-reports/rollup-visualiser/index.json', template: 'raw-data', gzipSize: true, brotliSize: true })
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
sourcemap: true,
|
|
33
|
+
target: 'ESNext'
|
|
34
|
+
},
|
|
35
|
+
plugins: [dts({ outDirs: 'dist/types' }), wasmPlugin],
|
|
36
|
+
resolve: {
|
|
37
|
+
alias: {
|
|
38
|
+
'~': fileURLToPath(new URL('./', import.meta.url)),
|
|
39
|
+
'@': fileURLToPath(new URL('src', import.meta.url))
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|