Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
parsagholipour committed Sep 26, 2022
1 parent 966333d commit 6c930c6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist-ssr
*.local
!dist/node_modules

# Editor directories and files
.vscode/*
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
},
"exports": {
".": "./dist/src/build.js",
"./vue": "./dist/src/vue/Sharee.js",
"./react": "./dist/src/react/Sharee.js"
},
"devDependencies": {
"@types/lodash.merge": "^4.6.7",
"@types/react": "^18.0.21",
Expand Down
1 change: 0 additions & 1 deletion src/react/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/vue/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
external: ['vue', 'react', 'react-dom', 'ripple-effects', '@types/react', '@types/react-dom'],
external: ['vue', 'react', 'react-dom', 'react-scripts', 'ripple-effects', '@types/react', '@types/react-dom'],
output: {
preserveModules: true,
entryFileNames: ({ name: fileName }) => {
Expand Down

0 comments on commit 6c930c6

Please sign in to comment.