Skip to content

Commit

Permalink
Fix dependcies
Browse files Browse the repository at this point in the history
  • Loading branch information
kalysti committed Oct 24, 2023
1 parent 5a80e87 commit 3788c6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@himalaya-ui/core",
"version": "0.0.7",
"version": "0.0.8",
"main": "dist/framework/index.js",
"module": "dist/framework-esm/index.js",
"types": "dist/framework-esm/index.d.ts",
Expand Down Expand Up @@ -203,10 +203,12 @@
"react-dom": ">=18.2.0",
"react-swipeable": ">=7.0.1",
"styled-jsx": "^5.1.2",
"@splidejs/splide": "^4.1.4",
"react-i18next": "^13.2.2"
"react-i18next": "^13.2.2",
"@splidejs/splide": "^4.1.4"
},
"dependencies": {
"@babel/runtime": "^7.23.1"
"@babel/runtime": "^7.23.1",
"@splidejs/splide": "^4.1.4",
"react-i18next": "^13.2.2"
}
}
6 changes: 4 additions & 2 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const plugins = [
}),
localResolve(),
nodeResolve({
browser: true,
extensions,
}),
commonjs(),
Expand All @@ -48,7 +47,7 @@ const globals = {
}

const external = id =>
/^react|react-dom|styled-jsx|moment|fancy-canvas|next\/link|next\/navigation/.test(id)
/^react|react-dom|styled-jsx|moment|fancy-canvas|@splidejs\/splide|react-i18next|next\/link|next\/navigation/.test(id)

const cjsOutput = {
format: 'cjs',
Expand All @@ -60,6 +59,9 @@ const cjsOutput = {
if (id.includes('node_modules/styled-jsx')) {
return 'styled-jsx.cjs'
}
if (id.includes('node_modules/react-i18next')) {
return 'react-i18next.cjs'
}
},
chunkFileNames: '[name].js',
globals,
Expand Down

0 comments on commit 3788c6f

Please sign in to comment.