god knows

This commit is contained in:
Jamie Pine 2022-04-17 11:59:28 -07:00
parent 0695403a6f
commit 70de8ab1b1
3 changed files with 3 additions and 17 deletions

View file

@ -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"'
},

View file

@ -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,

View file

@ -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'),