summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-07-21 15:18:49 +0100
committerAndrej Mihajlov <and@codeispoetry.ru>2017-07-21 15:18:49 +0100
commit5b24764c29db9760bd708e0f341af1ea4ebd5d1c (patch)
tree501646a78038892d039a1b39771a24be5275848f
parentfc7fbd09cb4cc77f56f8ab15af4e1f2669f385a7 (diff)
downloadmullvadvpn-5b24764c29db9760bd708e0f341af1ea4ebd5d1c.tar.xz
mullvadvpn-5b24764c29db9760bd708e0f341af1ea4ebd5d1c.zip
Remove unused transform-decorators-legacy
transform-decorators have been removed from babel stage-2. transform-decorators-legacy brings them back but we don't use them therefore I decided to exclude them from babel configuration. See: https://babeljs.io/docs/plugins/preset-stage-2/
-rw-r--r--.babelrc2
-rw-r--r--flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js32
-rw-r--r--package.json1
-rw-r--r--yarn.lock14
4 files changed, 4 insertions, 45 deletions
diff --git a/.babelrc b/.babelrc
index 363c59ab6f..60ed99df98 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,4 +1,4 @@
{
"presets": ["es2015", "stage-0", "react"],
- "plugins": ["transform-decorators-legacy", "transform-runtime", "inline-react-svg"]
+ "plugins": ["transform-runtime", "inline-react-svg"]
}
diff --git a/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js b/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js
deleted file mode 100644
index 2f9165ac40..0000000000
--- a/flow-typed/npm/babel-plugin-transform-decorators-legacy_vx.x.x.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// flow-typed signature: fe4c4115837f5c2771edb71ccf27af98
-// flow-typed version: <<STUB>>/babel-plugin-transform-decorators-legacy_v^1.3.4/flow_v0.46.0
-
-/**
- * This is an autogenerated libdef stub for:
- *
- * 'babel-plugin-transform-decorators-legacy'
- *
- * Fill this stub out by replacing all the `any` types.
- *
- * Once filled out, we encourage you to share your work with the
- * community by sending a pull request to:
- * https://github.com/flowtype/flow-typed
- */
-
-declare module 'babel-plugin-transform-decorators-legacy' {
- declare module.exports: any;
-}
-
-/**
- * We include stubs for each file inside this npm package in case you need to
- * require those files directly. Feel free to delete any files that aren't
- * needed.
- */
-declare module 'babel-plugin-transform-decorators-legacy/lib/index' {
- declare module.exports: any;
-}
-
-// Filename aliases
-declare module 'babel-plugin-transform-decorators-legacy/lib/index.js' {
- declare module.exports: $Exports<'babel-plugin-transform-decorators-legacy/lib/index'>;
-}
diff --git a/package.json b/package.json
index 832f3057d0..70f1e313b1 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,6 @@
"babel-core": "^6.25.0",
"babel-eslint": "^7.1.1",
"babel-plugin-inline-react-svg": "^0.4.0",
- "babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.22.0",
diff --git a/yarn.lock b/yarn.lock
index 64501d8c43..b4453ab26c 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -561,7 +561,7 @@ babel-plugin-syntax-class-properties@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de"
-babel-plugin-syntax-decorators@^6.1.18, babel-plugin-syntax-decorators@^6.13.0:
+babel-plugin-syntax-decorators@^6.13.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz#312563b4dbde3cc806cee3e416cceeaddd11ac0b"
@@ -634,14 +634,6 @@ babel-plugin-transform-class-properties@^6.24.1:
babel-runtime "^6.22.0"
babel-template "^6.24.1"
-babel-plugin-transform-decorators-legacy@^1.3.4:
- version "1.3.4"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.4.tgz#741b58f6c5bce9e6027e0882d9c994f04f366925"
- dependencies:
- babel-plugin-syntax-decorators "^6.1.18"
- babel-runtime "^6.2.0"
- babel-template "^6.3.0"
-
babel-plugin-transform-decorators@^6.24.1:
version "6.24.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d"
@@ -1011,14 +1003,14 @@ babel-register@^6.24.1:
mkdirp "^0.5.1"
source-map-support "^0.4.2"
-babel-runtime@^6.18.0, babel-runtime@^6.2.0, babel-runtime@^6.22.0, babel-runtime@^6.9.0:
+babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.9.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b"
dependencies:
core-js "^2.4.0"
regenerator-runtime "^0.10.0"
-babel-template@^6.15.0, babel-template@^6.24.1, babel-template@^6.25.0, babel-template@^6.3.0:
+babel-template@^6.15.0, babel-template@^6.24.1, babel-template@^6.25.0:
version "6.25.0"
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.25.0.tgz#665241166b7c2aa4c619d71e192969552b10c071"
dependencies: