Browse Source

it works!

yarn-workspaces
rozetko 1 year ago
parent
commit
db756fa41c
  1. 1
      packages/react/package.json
  2. 10
      packages/react/vite.config.ts
  3. 3
      yarn.lock

1
packages/react/package.json

@ -18,7 +18,6 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@chartwerk/line-pod-original": "npm:@chartwerk/line-pod@0.6.9",
"@types/lodash": "^4.14.201",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",

10
packages/react/vite.config.ts

@ -8,8 +8,11 @@ import { resolve } from 'path';
export default defineConfig({
plugins: [
react(),
dts({ include: ['lib'] })
dts({ include: ['lib'] }),
],
optimizeDeps: {
include: ['line-pod'],
},
build: {
copyPublicDir: false,
lib: {
@ -18,6 +21,9 @@ export default defineConfig({
},
rollupOptions: {
external: ['react', 'react/jsx-runtime'],
}
},
commonjsOptions: {
include: [/line-pod/],
},
}
});

3
yarn.lock

@ -286,7 +286,7 @@ __metadata:
languageName: node
linkType: hard
"@chartwerk/line-pod-original@npm:@chartwerk/line-pod@0.6.9, @chartwerk/line-pod@workspace:.":
"@chartwerk/line-pod@workspace:.":
version: 0.0.0-use.local
resolution: "@chartwerk/line-pod@workspace:."
languageName: unknown
@ -3869,7 +3869,6 @@ __metadata:
version: 0.0.0-use.local
resolution: "react-line-pod@workspace:packages/react"
dependencies:
"@chartwerk/line-pod-original": "npm:@chartwerk/line-pod@0.6.9"
"@types/lodash": ^4.14.201
"@types/react": ^18.2.15
"@types/react-dom": ^18.2.7

Loading…
Cancel
Save