mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 02:03:28 +00:00
god knows
This commit is contained in:
parent
0695403a6f
commit
70de8ab1b1
|
@ -9,21 +9,7 @@ export default defineConfig({
|
|||
server: {
|
||||
port: 8085
|
||||
},
|
||||
plugins: [
|
||||
reactRefresh(),
|
||||
tsconfigPaths(),
|
||||
reactSvgPlugin(),
|
||||
filterReplace([
|
||||
{
|
||||
filter: /\.js$/,
|
||||
replace: {
|
||||
// this is a hotfix for broken import in react-virtualized
|
||||
from: `import { bpfrpt_proptype_WindowScroller } from "../WindowScroller.js";`,
|
||||
to: ''
|
||||
}
|
||||
}
|
||||
])
|
||||
],
|
||||
plugins: [reactRefresh(), tsconfigPaths()],
|
||||
esbuild: {
|
||||
jsxInject: 'import {jsx as _jsx} from "react/jsx-runtime"'
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@sd/interface",
|
||||
"version": "1.0.0",
|
||||
"main": "./dist/index.js",
|
||||
"main": "./dist/index.es.js",
|
||||
"types": "./src/index.ts",
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
|
|
|
@ -38,7 +38,7 @@ export default defineConfig({
|
|||
build: {
|
||||
lib: {
|
||||
entry: path.resolve(__dirname, 'src', 'index.ts'),
|
||||
formats: ['es', 'cjs'],
|
||||
formats: ['es'],
|
||||
fileName: (ext) => `index.${ext}.js`
|
||||
},
|
||||
outDir: path.resolve(__dirname, 'dist'),
|
||||
|
|
Loading…
Reference in a new issue