Skip to content

Commit

Permalink
feat: 删除无用注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Dec 23, 2024
1 parent 8658fc9 commit ae4b68d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/webpack-plugin/lib/resolver/AddEnvPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module.exports = class AddEnvPlugin {
if (!extname || !matchCondition(resourcePath, this.fileConditionRules)) return callback()
const queryObj = parseQuery(request.query || '?')
queryObj.infix = `${queryObj.infix || ''}.${env}`
// css | stylus | less | sass 中 import file 过滤query,避免在对应的 loader 中无法读取到文件
obj.query = stringifyQuery(queryObj)
obj.path = addInfix(resourcePath, env, extname)
obj.relativePath = request.relativePath && addInfix(request.relativePath, env, extname)
Expand Down
1 change: 0 additions & 1 deletion packages/webpack-plugin/lib/resolver/AddModePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ module.exports = class AddModePlugin {
resolver.doResolve(target, Object.assign({}, request, obj), 'add mode: ' + mode, resolveContext, (err, result) => {
if (defaultMode && !result) {
queryObj.infix = `${queryInfix || ''}.${defaultMode}`
// css | stylus | less | sass 中 import file 过滤query,避免在对应的 loader 中无法读取到文件
obj.query = stringifyQuery(queryObj)
obj.path = addInfix(resourcePath, defaultMode, extname)
resolver.doResolve(target, Object.assign({}, request, obj), 'add mode: ' + defaultMode, resolveContext, (err, result) => {
Expand Down

0 comments on commit ae4b68d

Please sign in to comment.