marko/babel.config.js
Dylan Piercey 9df798af5e
fix: improve browser support for website (#1574)
* fix: improve browser support for website

* fix(compiler): failing test due to babel config
2020-05-26 14:34:52 -07:00

35 lines
635 B
JavaScript

module.exports = api => ({
retainLines: true,
presets: [
[
"@babel/env",
{
loose: true,
targets: {
node: "8"
}
}
]
],
plugins: [
"@babel/transform-runtime",
"@babel/plugin-proposal-object-rest-spread"
],
overrides: [
{
test: "./packages/marko/src/**/*",
plugins: api.env("production")
? [
["babel-plugin-minprops", { matchPrefix: "___", context: "marko" }],
"./scripts/babel-plugin-marko-debug"
]
: []
}
],
env: {
test: {
plugins: ["babel-plugin-istanbul"]
}
}
});