diegohaz / diegohaz/webpack-blocks-server-source-map

Migrate to webpack-blocks v1

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
PR welcome
Dominant language
JavaScript
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Webpack-block v1 is a release candidate and the API for blocks has changed a bit, see https://github.com/andywer/webpack-blocks/blob/master/docs/BLOCK-CREATION.md

I believe your block should now be:
```js
function serverSourceMap(devtool = 'source-map') {
return (context, { addPlugin }) => {
return (prevConfig) => {
return Object.assign(
addPlugin(new webpack.BannerPlugin({
banner: 'require("source-map-support").install();',
raw: true,
entryOnly: false,
}))(prevConfig),
{ devtool }
);
};
};
}
```

I was too lazy to write a PR, but let me know if you'd be interested.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.