fix: resolve correct component import path
This commit is contained in:
+2
-3
@@ -6,7 +6,7 @@ export default defineConfig({
|
||||
plugins: [react()],
|
||||
build: {
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/App.jsx'),
|
||||
entry: resolve(__dirname, 'src/index.js'),
|
||||
name: 'OslogReactBaseComponent',
|
||||
fileName: 'index',
|
||||
formats: ['es']
|
||||
@@ -14,8 +14,7 @@ export default defineConfig({
|
||||
rollupOptions: {
|
||||
external: ['react', 'react-dom'],
|
||||
output: {
|
||||
// Force explicit named exports matching your source code
|
||||
exports: 'named',
|
||||
exports: 'named',
|
||||
globals: {
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM'
|
||||
|
||||
Reference in New Issue
Block a user