Skip to content

Commit

Permalink
fix: optimizeDeps for plugin
Browse files Browse the repository at this point in the history
sanyuan0704 committed Nov 12, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jordan-rash Jordan Rash
1 parent 4ca07b8 commit 273c9d2
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/island/src/shared/constants/index.ts
Original file line number Diff line number Diff line change
@@ -2,5 +2,6 @@ export const APPEARANCE_KEY = 'island-theme-appearance';

export const TARGET_BLANK_WHITE_LIST = [
'https://island-tutorial.sanyuan0704.top',
'https://island.sanyuan0704.top'
'https://island.sanyuan0704.top',
'https://islandjs.dev'
];
2 changes: 1 addition & 1 deletion packages/plugin-backtop/src/index.ts
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ export function pluginBackTop(options: BackTopOptions = {}): IslandPlugin {
name: 'island:plugin-backtop',
vite: {
optimizeDeps: {
include: ['islandjs > @islandjs/plugin-backtop > b-tween']
include: ['b-tween']
}
},
alias: {
2 changes: 1 addition & 1 deletion packages/plugin-search/src/index.ts
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ export function pluginSearch(options: SearchOptions = {}): IslandPlugin {
name: 'island:plugin-search',
vite: {
optimizeDeps: {
include: ['islandjs > @islandjs/plugin-search > flexsearch']
include: ['flexsearch']
}
},
alias: {

1 comment on commit 273c9d2

@vercel
Copy link

@vercel vercel bot commented on 273c9d2 Nov 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.