Skip to content

Commit

Permalink
feat: demo vite5-external
Browse files Browse the repository at this point in the history
  • Loading branch information
fengxinming authored Dec 14, 2023
1 parent c480007 commit e86dc18
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/vite5-external/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import vitePluginExternal from 'vite-plugin-external';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
vitePluginExternal({
externals: {
react: '$linkdesign.React',
Expand All @@ -18,12 +16,8 @@ export default defineConfig({
open: true
},
build: {
cssCodeSplit: false,
rollupOptions: {
output: {
manualChunks: undefined,
assetFileNames: 'assets/[name][extname]',
entryFileNames: '[name].js',
format: 'iife'
}
}
Expand Down

0 comments on commit e86dc18

Please sign in to comment.