# babel-require **Repository Path**: wmlgl/babel-require ## Basic Information - **Project Name**: babel-require - **Description**: 一个类似NodeJS的"require()"函数,用来帮助Babel在浏览器上直接使用import关键字。A "require()" function like NodeJS, let Babel's browser version support "import" keyword. - **Primary Language**: JavaScript - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2016-03-12 - **Last Updated**: 2024-04-18 ## Categories & Tags **Categories**: javascript-toolkits **Tags**: None ## README #babel-require ---------------------------------------------- 通过同步AJAX请求实现,性能低下,请只用于开发调试,生产环境请使用webpack等静态编译工具。 Implement by Synchronous AJAX, low performance, we use it in development and debug, not use it in production environment. ##Supported: ------------------------------------------------ 支持Babel版本: **Babel5.x** ##Config: ----------------------------------------------- 加载模块时,如果配置了jsx,并且该模块属于jsx项配置的目录下,则加载".jsx"文件,否则加载".js"文件。 Config exmaple: ```HTML ``` ##Example: ------------------------------------------------ Online: http://wmlgl.github.io/babel-require/examples/ ```HTML