mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
32 lines
579 B
JavaScript
32 lines
579 B
JavaScript
module.exports = api => ({
|
|
retainLines: true,
|
|
presets: [
|
|
[
|
|
"@babel/env",
|
|
{
|
|
loose: true,
|
|
targets: {
|
|
node: "10"
|
|
}
|
|
}
|
|
]
|
|
],
|
|
plugins: ["@babel/transform-runtime"],
|
|
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"]
|
|
}
|
|
}
|
|
});
|