A Babel plugin to wrap the "default" identifier with apostrophes
This plugin is useful for legacy browsers or tools that treat "default" identifier as a keyword
Input src/simple/actual.js
var x = {
default: 0
};
Output dist/simple/actual.js
'use strict';
var x = {
'default': 0
};
$ npm install babel-plugin-default-identifier
{
"plugins": ["default-identifier"]
}
Run mocha tests with npm test
MIT