karma-react-jsx-preprocessor:用于编译 React JSX 文件的 karma 预处理器

时间:2021-05-29 07:20:29
【文件属性】:
文件名称:karma-react-jsx-preprocessor:用于编译 React JSX 文件的 karma 预处理器
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-29 07:20:29
JavaScript 业力React-jsx-预处理器 用于编译文件的。 0.1.x 版本应该与 Karma 的 0.10.x 版本兼容。 如何使用 真的很简单:在 karma conf 文件中添加一个预处理器子句,它会自动转换 .jsx 文件。 module.exports = function(config) { config.set({ preprocessors: { '**/*.jsx': [ 'react-jsx' ] }, // the rest of the config should be here }) }
【文件预览】:
karma-react-jsx-preprocessor-master
----.gitignore(13B)
----test()
--------mocha.opts(58B)
--------unit()
--------common.js(121B)
----package.json(775B)
----readme.md(562B)
----index.js(343B)
----.npmignore(5B)

网友评论