@newsteam/babel-preset
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -1,2 +0,2 @@ | ||
import { PluginItem } from "@babel/core"; | ||
import type { PluginItem } from "@babel/core"; | ||
export interface TamlandBabelPresetOptions { | ||
@@ -11,5 +11,3 @@ addModuleExports: boolean; | ||
reactHotLoader: boolean; | ||
targets: string | string[] | { | ||
[string: string]: string; | ||
}; | ||
targets: Record<string, string> | string[] | string; | ||
typescript: boolean; | ||
@@ -16,0 +14,0 @@ } |
@@ -30,13 +30,7 @@ "use strict"; | ||
const development = typeof options.development === "boolean" ? options.development : api.cache.using(() => process.env.NODE_ENV === "development"); | ||
plugins.push("babel-plugin-transform-typescript-metadata"); | ||
plugins.push(["@babel/plugin-proposal-decorators", { | ||
plugins.push("babel-plugin-transform-typescript-metadata", ["@babel/plugin-proposal-decorators", { | ||
legacy: true | ||
}]); | ||
plugins.push(["@babel/plugin-proposal-class-properties", { | ||
}], ["@babel/plugin-proposal-class-properties", { | ||
loose: true | ||
}]); | ||
plugins.push("@babel/plugin-proposal-object-rest-spread"); | ||
plugins.push("@babel/plugin-transform-named-capturing-groups-regex"); | ||
plugins.push("@loadable/babel-plugin"); | ||
plugins.push("jsx-control-statements"); | ||
}], "@babel/plugin-proposal-object-rest-spread", "@babel/plugin-transform-named-capturing-groups-regex", "@loadable/babel-plugin", "jsx-control-statements"); | ||
@@ -68,4 +62,3 @@ if (reactHotLoader) { | ||
targets | ||
}]); | ||
presets.push(["@babel/preset-react", { | ||
}], ["@babel/preset-react", { | ||
development | ||
@@ -72,0 +65,0 @@ }]); |
{ | ||
"name": "@newsteam/babel-preset", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "Shared preset for babel", | ||
@@ -44,11 +44,11 @@ "main": "lib", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.10.4", | ||
"@babel/plugin-proposal-class-properties": "7.12.1", | ||
"@babel/plugin-proposal-decorators": "7.12.12", | ||
"@babel/plugin-proposal-object-rest-spread": "7.12.1", | ||
"@babel/plugin-transform-named-capturing-groups-regex": "7.12.1", | ||
"@babel/plugin-transform-typescript": "7.12.1", | ||
"@babel/preset-env": "7.12.11", | ||
"@babel/preset-react": "7.12.10", | ||
"@babel/preset-typescript": "7.12.7", | ||
"@babel/helper-plugin-utils": "7.13.0", | ||
"@babel/plugin-proposal-class-properties": "7.13.0", | ||
"@babel/plugin-proposal-decorators": "7.13.5", | ||
"@babel/plugin-proposal-object-rest-spread": "7.13.8", | ||
"@babel/plugin-transform-named-capturing-groups-regex": "7.12.13", | ||
"@babel/plugin-transform-typescript": "7.13.0", | ||
"@babel/preset-env": "7.13.10", | ||
"@babel/preset-react": "7.12.13", | ||
"@babel/preset-typescript": "7.13.0", | ||
"@loadable/babel-plugin": "5.13.2", | ||
@@ -60,17 +60,17 @@ "babel-plugin-add-module-exports": "1.0.4", | ||
"react-hot-loader": "4.13.0", | ||
"typescript": "4.1.3" | ||
"typescript": "4.2.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "7.12.10", | ||
"@babel/core": "7.12.10", | ||
"@newsteam/jasmine": "0.0.23", | ||
"@babel/cli": "7.13.10", | ||
"@babel/core": "7.13.10", | ||
"@newsteam/jasmine": "0.0.24", | ||
"@types/babel__core": "7.1.12", | ||
"@types/node": "14.14.22", | ||
"@types/node": "14.14.34", | ||
"jasmine": "3.6.4", | ||
"npm-check-updates": "^11.1.1", | ||
"npm-check-updates": "^11.3.0", | ||
"renamer": "2.0.1" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "7.12.10" | ||
"@babel/core": "7.13.10" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10312
150
+ Added@babel/core@7.13.10(transitive)
+ Added@babel/helper-define-polyfill-provider@0.1.5(transitive)
+ Added@babel/helper-plugin-utils@7.13.0(transitive)
+ Added@babel/plugin-proposal-class-properties@7.13.0(transitive)
+ Added@babel/plugin-proposal-decorators@7.13.5(transitive)
+ Added@babel/plugin-proposal-object-rest-spread@7.13.8(transitive)
+ Added@babel/plugin-transform-named-capturing-groups-regex@7.12.13(transitive)
+ Added@babel/plugin-transform-typescript@7.13.0(transitive)
+ Added@babel/preset-env@7.13.10(transitive)
+ Added@babel/preset-react@7.12.13(transitive)
+ Added@babel/preset-typescript@7.13.0(transitive)
+ Addedbabel-plugin-polyfill-corejs2@0.1.10(transitive)
+ Addedbabel-plugin-polyfill-corejs3@0.1.7(transitive)
+ Addedbabel-plugin-polyfill-regenerator@0.1.6(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedlodash.debounce@4.0.8(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtypescript@4.2.3(transitive)
- Removed@babel/core@7.12.10(transitive)
- Removed@babel/helper-plugin-utils@7.10.4(transitive)
- Removed@babel/plugin-proposal-class-properties@7.12.1(transitive)
- Removed@babel/plugin-proposal-decorators@7.12.12(transitive)
- Removed@babel/plugin-proposal-object-rest-spread@7.12.1(transitive)
- Removed@babel/plugin-transform-named-capturing-groups-regex@7.12.1(transitive)
- Removed@babel/plugin-transform-typescript@7.12.1(transitive)
- Removed@babel/preset-env@7.12.11(transitive)
- Removed@babel/preset-react@7.12.10(transitive)
- Removed@babel/preset-typescript@7.12.7(transitive)
- Removedsemver@5.7.2(transitive)
- Removedtypescript@4.1.3(transitive)
Updated@babel/plugin-transform-named-capturing-groups-regex@7.12.13
Updated@babel/preset-env@7.13.10
Updated@babel/preset-react@7.12.13
Updatedtypescript@4.2.3