Commit 1b55b0a 1 parent 9162d06 commit 1b55b0a Copy full SHA for 1b55b0a
File tree 2 files changed +30
-2
lines changed
2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
- import { defineBuildConfig } from 'unbuild' ;
1
+ import { defineBuildConfig } from 'unbuild' ;
2
2
3
3
export default defineBuildConfig ( {
4
- externals : [ '@nuxt/devtools-kit' ] ,
4
+ failOnWarn : false ,
5
+ externals : [
6
+ '@nuxt/devtools-kit' ,
7
+ 'floating-vue' ,
8
+ '@floating-ui/dom' ,
9
+ '@floating-ui/core' ,
10
+ '@floating-ui/utils'
11
+ ] ,
5
12
} ) ;
Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ import {
6
6
addComponent ,
7
7
type AddComponentOptions ,
8
8
logger ,
9
+ installModule ,
9
10
} from '@nuxt/kit' ;
10
11
import { addCustomTab } from '@nuxt/devtools-kit' ;
12
+ import FloatingVue from 'floating-vue' ;
11
13
12
14
const transpile = [
13
15
'@headlessui/vue' ,
@@ -16,6 +18,9 @@ const transpile = [
16
18
'@morpheme/utils' ,
17
19
'@morpheme/design-tokens' ,
18
20
'floating-vue' ,
21
+ '@floating-ui/dom' ,
22
+ '@floating-ui/core' ,
23
+ '@floating-ui/utils'
19
24
] ;
20
25
21
26
const optimizeDeps = [
@@ -752,6 +757,22 @@ export default defineNuxtModule<ModuleOptions>({
752
757
nuxt . options . build . transpile . push ( runtimeDir ) ;
753
758
addPlugin ( resolve ( runtimeDir , 'plugin' ) ) ;
754
759
760
+ // install floating-vue
761
+ // installModule('floating-vue/nuxt')
762
+
763
+ // FloatingVue.options.themes = {
764
+ // 'tooltip-black': {
765
+ // $extend: 'tooltip',
766
+ // $resetCss: true,
767
+ // disposeTimeout: 100000,
768
+ // },
769
+ // 'tooltip-white': {
770
+ // $extend: 'tooltip',
771
+ // $resetCss: true,
772
+ // disposeTimeout: 100000,
773
+ // },
774
+ // }
775
+
755
776
// transpile deps
756
777
if ( options . transpileDeps ) {
757
778
nuxt . options . build . transpile = [
You can’t perform that action at this time.
0 commit comments