INNER CODE UNIT · JavaScript
BabelRemoveSloppyPlugin
standard-things/esm · .babel.config.js:102
function BabelRemoveSloppyPlugin() {
function enterFunction({ node: { body: directives } }) {
arrayRemove(directives, ({ value: { value } }) => value === "use sloppy")
}
return {
visitor: {
ArrowFunctionExpression: enterFunction,
FunctionDeclaration: enterFunction,
FunctionExpression: enterFunction
}
}
}
const isTest = /test/.test(process.env.ESM_ENV)
module.exports = {
env: {