6e453b3f08
* make widget docs editable * update widget doc frontmatter keys * improve docs preview * fix formatting * fix preview * add prism highlighting for previews * fix formatting * restore cms branch
47 lines
877 B
Plaintext
47 lines
877 B
Plaintext
{
|
|
presets: [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
loose: true,
|
|
modules: false,
|
|
useBuiltIns: "usage",
|
|
shippedProposals: true,
|
|
targets: {
|
|
browsers: [">0.25%", "not dead"],
|
|
},
|
|
},
|
|
],
|
|
[
|
|
"@babel/preset-react",
|
|
{
|
|
useBuiltIns: true,
|
|
pragma: "React.createElement",
|
|
},
|
|
],
|
|
],
|
|
plugins: [
|
|
["prismjs", {
|
|
"languages": ["javascript", "css", "markup", "yaml", "json"],
|
|
"plugins": ["line-numbers"],
|
|
"theme": "tomorrow",
|
|
"css": true,
|
|
}],
|
|
[
|
|
"@babel/plugin-proposal-class-properties",
|
|
{
|
|
loose: true,
|
|
},
|
|
],
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
"babel-plugin-macros",
|
|
[
|
|
"@babel/plugin-transform-runtime",
|
|
{
|
|
helpers: true,
|
|
regenerator: true,
|
|
},
|
|
],
|
|
],
|
|
}
|