0.1.2 • Published 5 years ago

babel-plugin-transform-wxs v0.1.2

Weekly downloads
9
License
-
Repository
-
Last release
5 years ago

babel-plugin-transform-wxs

Babel plugin for wxs environment.

Example

In

exports.date = new Date(timestamp)
exports.regex_1 = new RegExp(pattern, flags)
exports.regex_2 = /pattern/i

Out

var exports = module.exports;
exports.date = getDate(timestamp)
exports.regex_1 = getRegExp(pattern, flags)
exports.regex_2 = getRegExp("pattern", "i")