Skip to content

Commit

Permalink
STRWEB-124 extract sourcemaps from pre-transpiled packages
Browse files Browse the repository at this point in the history
Extract sourcemaps from pre-transpiled packages. This was unnecessary
previously because stripes-webpack was responsible for both
transpilation and bundling of all `@folio`-scoped packages in a
platform. Now, some packages are transpiled on publish, so we need this
change to consume their sourcemaps.

We may want to set include/exclude rules to only include sourcemaps for
packages scoped to `@folio`.

Refs STRWEB-124
  • Loading branch information
zburke committed Jan 16, 2025
1 parent ba5ba8f commit 3c663cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 5.3.0 IN PROGRESS

* Remove unused `babel-plugin-remove-jsx-attributes`. Refs STRWEB-120.
* Webpack: extract sourcemaps from transpiled packages. Refs STRWEB-124.

## [5.2.0](https://github.com/folio-org/stripes-webpack/tree/v5.2.0) (2024-10-09)
[Full Changelog](https://github.com/folio-org/stripes-webpack/compare/v5.1.0...v5.2.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@folio/stripes-webpack",
"version": "5.3.0",
"version": "5.3.1",
"description": "The webpack config for stripes",
"license": "Apache-2.0",
"publishConfig": {
Expand Down
5 changes: 5 additions & 0 deletions webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ const baseConfig = {
loader: 'csv-loader',
}],
},
{
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
},
{
test: /\.js.map$/,
enforce: 'pre',
Expand Down

0 comments on commit 3c663cf

Please sign in to comment.