Skip to content

Commit

Permalink
Remove deprecated resolveAliases block (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Zhukov committed Apr 21, 2018
1 parent 5644112 commit 9d1535b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions packages/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Next Release

- Remove deprecated `fileType` API ([#260](https://github.com/andywer/webpack-blocks/issues/260))
- Remove deprecated `resolveAliases` block ([#267](https://github.com/andywer/webpack-blocks/issues/267))

## 1.0.0

Expand Down
14 changes: 0 additions & 14 deletions packages/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ exports.setEnv = require('./lib/setEnv')
exports.entryPoint = entryPoint
exports.performance = performance
exports.resolve = resolve
exports.resolveAliases = resolveAliases
exports.setContext = setContext
exports.setDevTool = setDevTool
exports.setOutput = setOutput
Expand Down Expand Up @@ -125,19 +124,6 @@ function resolve (config) {
})
}

/**
* @deprecated
* @see https://webpack.github.io/docs/configuration.html#resolve-alias
*/
function resolveAliases (aliases) {
console.warn(`[webpack-blocks] resolveAliases is deprecated. Please, use resolve({ alias: '' }) instead.`)
return (context, util) => util.merge({
resolve: {
alias: aliases
}
})
}

/**
* @see https://webpack.github.io/docs/configuration.html#context
*/
Expand Down

0 comments on commit 9d1535b

Please sign in to comment.