mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2025-10-07 07:22:37 +02:00
34 lines
807 B
Plaintext
34 lines
807 B
Plaintext
{
|
|
"presets": [
|
|
[
|
|
// Latest stable ECMAScript features
|
|
"@babel/preset-env",
|
|
{
|
|
"useBuiltIns": "entry",
|
|
// Do not transform modules to CJS
|
|
"modules": false,
|
|
"targets": {
|
|
"chrome": "49",
|
|
"firefox": "52",
|
|
"opera": "36",
|
|
"edge": "79"
|
|
}
|
|
}
|
|
],
|
|
"@babel/typescript",
|
|
"@babel/react"
|
|
],
|
|
"plugins": [
|
|
["@babel/plugin-proposal-class-properties"],
|
|
["@babel/plugin-transform-destructuring", { "useBuiltIns": true }],
|
|
["@babel/plugin-proposal-object-rest-spread", { "useBuiltIns": true }],
|
|
[
|
|
// Polyfills the runtime needed for async/await and generators
|
|
"@babel/plugin-transform-runtime",
|
|
{
|
|
"helpers": false,
|
|
"regenerator": true
|
|
}
|
|
]
|
|
]
|
|
} |