diff --git a/packages/react/package.json b/packages/react/package.json index 518ae62..7332681 100644 --- a/packages/react/package.json +++ b/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", diff --git a/packages/react/vite.config.ts b/packages/react/vite.config.ts index 6ad3b41..9186c51 100644 --- a/packages/react/vite.config.ts +++ b/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/], + }, } }); diff --git a/yarn.lock b/yarn.lock index d989c37..dc0dd50 100644 --- a/yarn.lock +++ b/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