trayio / babel-plugin-webpack-alias

babel 6 plugin which allows to use webpack resolve options
MIT License
150 stars 32 forks source link

adds support for Escape alias, like '$aliasName' #56

Closed zhangliu closed 4 years ago

zhangliu commented 6 years ago

Currently the plugin doesn't work if an alias has a "Regular Expression special char" in it. This PR fixes that.

Example:

  alias: {
    '$somethingsomething': '/somethingelse'
  }
codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@cb486b7). Click here to learn what that means. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #56   +/-   ##
=========================================
  Coverage          ?   94.44%           
=========================================
  Files             ?        1           
  Lines             ?       90           
  Branches          ?        0           
=========================================
  Hits              ?       85           
  Misses            ?        5           
  Partials          ?        0
Impacted Files Coverage Δ
src/index.js 94.44% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cb486b7...b43ac00. Read the comment docs.

gixo commented 4 years ago

@zhangliu I am closing this PR due to inactivity, let me know if it needs reopening.