forked from external-repos/squoosh
Babel configuration for TypeScript
This commit is contained in:
32
.babelrc
Normal file
32
.babelrc
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"presets": [
|
||||||
|
[
|
||||||
|
"@babel/preset-typescript",
|
||||||
|
{
|
||||||
|
"jsxPragma": "h"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
[
|
||||||
|
"@babel/plugin-transform-react-jsx",
|
||||||
|
{
|
||||||
|
"loose": true,
|
||||||
|
"pragma": "h",
|
||||||
|
"pragmaFrag": "Fragment"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@babel/plugin-proposal-decorators",
|
||||||
|
{
|
||||||
|
"legacy": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@babel/plugin-proposal-class-properties",
|
||||||
|
{
|
||||||
|
"loose": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
3
global.d.ts
vendored
3
global.d.ts
vendored
@@ -1,6 +1,3 @@
|
|||||||
declare const __webpack_public_path__: string;
|
|
||||||
declare const PRERENDER: boolean;
|
|
||||||
|
|
||||||
declare interface NodeModule {
|
declare interface NodeModule {
|
||||||
hot: any;
|
hot: any;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
"pre-commit": "npm run lint"
|
"pre-commit": "npm run lint"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"browserslist": ">0.25%, not IE 11, not op_mini all",
|
||||||
"postcss": {
|
"postcss": {
|
||||||
"modules": true,
|
"modules": true,
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
|
|||||||
Reference in New Issue
Block a user