mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Co-authored-by: Michael Rawlings <mirawlings@ebay.com> Co-authored-by: Dylan Piercey <dpiercey@ebay.com> Co-authored-by: Andrew Gliga <agliga@ebay.com>
36 lines
678 B
JavaScript
36 lines
678 B
JavaScript
module.exports = api => ({
|
|
retainLines: true,
|
|
presets: [
|
|
[
|
|
"@babel/env",
|
|
{
|
|
loose: true,
|
|
targets: {
|
|
node: "8"
|
|
}
|
|
}
|
|
]
|
|
],
|
|
plugins: [
|
|
"@babel/transform-runtime",
|
|
"@babel/plugin-proposal-class-properties",
|
|
"@babel/plugin-proposal-object-rest-spread"
|
|
],
|
|
overrides: [
|
|
{
|
|
test: "./packages/*/src/**/*",
|
|
plugins: api.env("production")
|
|
? [
|
|
["babel-plugin-minprops", { matchPrefix: "___", context: "marko" }],
|
|
"./scripts/babel-plugin-marko-debug"
|
|
]
|
|
: []
|
|
}
|
|
],
|
|
env: {
|
|
test: {
|
|
plugins: ["babel-plugin-istanbul"]
|
|
}
|
|
}
|
|
});
|