* add search button for web extension * change button color and behavior * Update extensions-web/src/mcp-web/components/WebSearchButton.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
20 lines
486 B
JavaScript
20 lines
486 B
JavaScript
import { defineConfig } from 'rolldown'
|
|
import pkgJson from './package.json' with { type: 'json' }
|
|
|
|
export default defineConfig([
|
|
{
|
|
input: 'src/index.ts',
|
|
output: {
|
|
format: 'esm',
|
|
file: 'dist/index.js',
|
|
sourcemap: true,
|
|
},
|
|
platform: 'browser',
|
|
external: ['path', 'react', 'react-dom', 'react/jsx-runtime'],
|
|
define: {
|
|
NODE: JSON.stringify(`${pkgJson.name}/${pkgJson.node}`),
|
|
VERSION: JSON.stringify(pkgJson.version),
|
|
},
|
|
}
|
|
])
|