7.2.1-26 • Published 5 years ago
@gerhobbelt/babel-preset-stage-3 v7.2.1-26
@gerhobbelt/babel-preset-stage-3
As of v7.0.0-beta.55, we've removed Babel's Stage presets. Please consider reading our blog post on this decision for more details. TL;DR is that it's more beneficial in the long run to explicitly add which proposals to use.
For a more automatic migration, we have updated babel-upgrade to do this for you (you can run npx babel-upgrade
).
If you want the same configuration as before:
{
"plugins": [
"@gerhobbelt/babel-plugin-syntax-dynamic-import",
"@gerhobbelt/babel-plugin-syntax-import-meta",
["@gerhobbelt/babel-plugin-proposal-class-properties", { "loose": false }],
"@gerhobbelt/babel-plugin-proposal-json-strings"
]
}
If you're using the same configuration across many separate projects, keep in mind that you can also create your own custom presets with whichever plugins and presets you're looking to use.
module.exports = function() {
return {
plugins: [
require("@gerhobbelt/babel-plugin-syntax-dynamic-import"),
[require("@gerhobbelt/babel-plugin-proposal-decorators"), { "legacy": true }],
[require("@gerhobbelt/babel-plugin-proposal-class-properties"), { "loose": false }],
],
presets: [
// ...
],
};
};
7.2.1-26
5 years ago
7.0.1-15
6 years ago
7.0.0-14
6 years ago
7.0.0-13
6 years ago
7.0.0-beta.530006
6 years ago
7.0.0-beta.530005
6 years ago
7.0.0-beta.530004
6 years ago
7.0.0-beta.510001
6 years ago