没有合适的资源?快使用搜索试试~ 我知道了~
babel-plugin-module-resolver:Babel的自定义模块解析器插件
共55个文件
js:36个
md:4个
yml:4个
需积分: 50 0 下载量 56 浏览量
2021-01-30
01:06:37
上传
评论
收藏 232KB ZIP 举报
温馨提示
babel插件模块解析器 一个插件,可在使用Babel编译代码时为模块添加新的解析器。 该插件允许您添加包含模块的新“根”目录。 它还允许您为目录,特定文件甚至其他npm模块设置自定义别名。 描述 该插件可以简化项目中的需求/导入路径。 例如,您可以编写utils/my-utils ,而不是使用../../../../utils/my-utils等复杂的相对路径。 它使您可以更快地工作,因为您无需在访问文件之前就计算出要上升的目录级别。 // Use this: import MyUtilFn from 'utils/MyUtilFn' ; // Instead of that: import MyUtilFn from '../../../../utils/MyUtilFn' ; // And it also work with require calls // Use this: const MyUtilFn = require ( 'utils/MyUtilFn' ) ; // Instead of that: const MyUtilFn = require ( '../.
资源推荐
资源详情
资源评论
收起资源包目录
babel-plugin-module-resolver-master.zip (55个子文件)
babel-plugin-module-resolver-master
.babelrc 152B
package.json 2KB
.github
workflows
test.yml 756B
test
custom-call.test.js 3KB
normalizeOptions.test.js 2KB
import.test.js 4KB
mapToRelative.test.js 651B
index.test.js 29KB
testproject
.babelrc 5B
package.json 2B
node_modules
second
index.js 0B
first
index.js 0B
test
tools.js 33B
example-file.js 0B
src
constants
actions.js 0B
es6module.es6 0B
nodemodule.mjs 1B
components
Sidebar
Footer
index.js 0B
SidebarFooterButton.js 0B
index.js 0B
Root.js 0B
Header
index.js 0B
header.css 0B
SubHeader.js 0B
App.js 0B
app.js 0B
actions
something.js 0B
constants.js 0B
text.txt 0B
rn
index.ios.js 0B
index.android.js 0B
libs
custom.modernizr3.js 0B
.eslintrc.js 69B
dynamicImport.test.js 3KB
call.test.js 3KB
package-lock.json 833KB
appveyor.yml 413B
src
log.js 240B
utils.js 2KB
resolvePath.js 3KB
index.js 1KB
mapToRelative.js 360B
mapPath.js 606B
normalizeOptions.js 4KB
transformers
import.js 263B
call.js 575B
.eslintrc.js 140B
DOCS.md 9KB
.prettierrc.yml 53B
codecov.yml 34B
LICENSE.md 1KB
.gitignore 54B
CHANGELOG.md 14KB
README.md 7KB
.editorconfig 147B
共 55 条
- 1
资源评论
侯戈
- 粉丝: 20
- 资源: 4630
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功