mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
24 lines
643 B
TypeScript
24 lines
643 B
TypeScript
import { defineConfig } from "rollup";
|
|
import alias from '@rollup/plugin-alias';
|
|
import { globSync } from "glob";
|
|
|
|
export default defineConfig({
|
|
input: globSync('dist/**/*', { nodir: true }),
|
|
output: [
|
|
{
|
|
dir: 'dist',
|
|
format: 'esm',
|
|
sourcemap: 'inline',
|
|
preserveModules: true,
|
|
}
|
|
],
|
|
external: [/^ext:.+/],
|
|
plugins: [
|
|
alias({
|
|
entries: [
|
|
{ find: 'react/jsx-runtime', replacement: 'ext:gauntlet/react-jsx-runtime.js' },
|
|
{ find: 'react', replacement: 'ext:gauntlet/react.js' },
|
|
]
|
|
}),
|
|
]
|
|
})
|