bito-code-review[bot] commented on PR #44965:
URL: https://github.com/apache/superset/pull/44965#issuecomment-5980953997
<!-- Bito Reply -->
The current configuration in `webpack.config.js` uses `to:
'maplibre-gl-worker.mjs'` and `to: 'maplibre-gl-shared.mjs'`. If the underlying
copy mechanism treats these as directory paths, it will indeed create nested
structures like `maplibre-gl-worker.mjs/maplibre-gl-worker.mjs`.
To ensure the files are emitted directly under the asset root with their
original filenames, you should omit the `to` property entirely for these
patterns. By providing only the `from` path, the plugin will default to using
the basename of the source file as the destination filename in the output root.
**superset-frontend/webpack.config.js**
```
{ from: 'node_modules/maplibre-gl/dist/maplibre-gl-worker.mjs' },
{ from: 'node_modules/maplibre-gl/dist/maplibre-gl-shared.mjs' },
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]