This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft/openjscad/node_modules/astring/babel.config.js

39 lines
749 B
JavaScript

module.exports = api => {
api.cache.never()
switch (process.env.BABEL_MODE) {
case 'minified':
return {
presets: [
[
'@babel/preset-env',
{
forceAllTransforms: true,
modules: "umd",
},
],
[
'minify',
{
mangle: {
blacklist: {
generate: true,
baseGenerator: true,
},
},
},
],
],
}
default:
return {
presets: [
[
'@babel/preset-env',
{
forceAllTransforms: true,
},
],
],
}
}
}