feat: add router

This commit is contained in:
2025-03-02 02:18:45 +08:00
parent de3187f5f3
commit bac3e5b393
5 changed files with 65 additions and 2 deletions

View File

@@ -95,4 +95,27 @@ export default [
},
plugins: [dts()],
},
{
input: 'src/router-simple-lib.ts',
output: {
file: 'dist/router-simple-lib.js',
format: 'es',
},
plugins: [
resolve({
browser: false,
}),
commonjs(),
typescript(),
],
external: ['xml2js'],
},
{
input: 'src/router-simple-lib.ts',
output: {
file: 'dist/router-simple-lib.d.ts',
format: 'es',
},
plugins: [dts()],
},
];