Skip to content

Commit

Permalink
fix: bad webpack/lerna monorepo interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Vtec234 committed Mar 20, 2022
1 parent f56e705 commit 7018481
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vscode-lean4/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function getWebviewConfig(env) {
}),
new CopyPlugin({
patterns: [{
from: path.resolve(__dirname, 'node_modules', '@lean4', 'infoview', 'dist'),
// See https://github.com/webpack-contrib/copy-webpack-plugin/tree/e2274daad21baae3020819aa29ab903bd9992cce#yarn-workspaces-and-monorepos
from : `${path.dirname(require.resolve('@lean4/infoview/package.json'))}/dist`,
to: path.resolve(__dirname, 'dist', 'lean4-infoview')
}, {
from: path.resolve(__dirname, 'node_modules', '@esm-bundle', 'react', 'esm'),
Expand Down

0 comments on commit 7018481

Please sign in to comment.