replace popper with floating ui

This commit is contained in:
Cory LaViska
2022-03-03 15:48:20 -05:00
parent 93cb8a2411
commit b9770e7e73
15 changed files with 213 additions and 246 deletions

View File

@@ -64,7 +64,7 @@ fs.mkdirSync(outdir, { recursive: true });
chunkNames: 'chunks/[name].[hash]',
incremental: serve,
define: {
// Popper.js requires this to be set
// Floating UI requires this to be set
'process.env.NODE_ENV': '"production"'
},
bundle: true,
@@ -76,7 +76,7 @@ fs.mkdirSync(outdir, { recursive: true });
//
external: bundle
? alwaysExternal
: [...alwaysExternal, '@popperjs/core', '@shoelace-style/animations', 'lit', 'qr-creator'],
: [...alwaysExternal, '@floating-ui/dom', '@shoelace-style/animations', 'lit', 'qr-creator'],
splitting: true,
plugins: []
})