|
@@ -1,6 +1,5 @@
|
|
|
import path from 'path';
|
|
import path from 'path';
|
|
|
|
|
|
|
|
-import react from '@vitejs/plugin-react';
|
|
|
|
|
import glob from 'glob';
|
|
import glob from 'glob';
|
|
|
import { nodeExternals } from 'rollup-plugin-node-externals';
|
|
import { nodeExternals } from 'rollup-plugin-node-externals';
|
|
|
import { defineConfig } from 'vite';
|
|
import { defineConfig } from 'vite';
|
|
@@ -9,8 +8,9 @@ import dts from 'vite-plugin-dts';
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
|
plugins: [
|
|
plugins: [
|
|
|
- react(),
|
|
|
|
|
- dts({ copyDtsFiles: true }),
|
|
|
|
|
|
|
+ dts({
|
|
|
|
|
+ copyDtsFiles: true,
|
|
|
|
|
+ }),
|
|
|
{
|
|
{
|
|
|
...nodeExternals({
|
|
...nodeExternals({
|
|
|
devDeps: true,
|
|
devDeps: true,
|
|
@@ -26,8 +26,8 @@ export default defineConfig({
|
|
|
entry: glob.sync(path.resolve(__dirname, 'src/**/*.ts'), {
|
|
entry: glob.sync(path.resolve(__dirname, 'src/**/*.ts'), {
|
|
|
ignore: '**/*.spec.ts',
|
|
ignore: '**/*.spec.ts',
|
|
|
}),
|
|
}),
|
|
|
- name: 'presentation-libs',
|
|
|
|
|
- formats: ['es'],
|
|
|
|
|
|
|
+ name: 'core-libs',
|
|
|
|
|
+ formats: ['es', 'cjs'],
|
|
|
},
|
|
},
|
|
|
rollupOptions: {
|
|
rollupOptions: {
|
|
|
output: {
|
|
output: {
|