Skip to content

Commit fafaf89

Browse files
G-RathSimenB
authored andcommitted
use babel-plugin-replace-ts-export-assignment package (#8805)
1 parent 53e964c commit fafaf89

File tree

4 files changed

+7
-29
lines changed

4 files changed

+7
-29
lines changed

babel.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ module.exports = {
1111
{
1212
plugins: [
1313
'babel-plugin-typescript-strip-namespaces',
14-
require.resolve(
15-
'./scripts/babel-plugin-jest-replace-ts-export-assignment.js'
16-
),
14+
'babel-plugin-replace-ts-export-assignment',
1715
],
1816
presets: ['@babel/preset-typescript'],
1917
test: /\.tsx?$/,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"ansi-styles": "^3.2.0",
2121
"babel-eslint": "^10.0.2",
2222
"babel-loader": "^8.0.5",
23+
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
2324
"babel-plugin-typescript-strip-namespaces": "^1.1.1",
2425
"camelcase": "^5.0.0",
2526
"chalk": "^2.0.1",

scripts/babel-plugin-jest-replace-ts-export-assignment.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3378,6 +3378,11 @@ babel-plugin-istanbul@^5.1.0:
33783378
istanbul-lib-instrument "^3.0.0"
33793379
test-exclude "^5.0.0"
33803380

3381+
babel-plugin-replace-ts-export-assignment@^0.0.2:
3382+
version "0.0.2"
3383+
resolved "https://registry.yarnpkg.com/babel-plugin-replace-ts-export-assignment/-/babel-plugin-replace-ts-export-assignment-0.0.2.tgz#927a30ba303fcf271108980a8d4f80a693e1d53f"
3384+
integrity sha512-BiTEG2Ro+O1spuheL5nB289y37FFmz0ISE6GjpNCG2JuA/WNcuEHSYw01+vN8quGf208sID3FnZFDwVyqX18YQ==
3385+
33813386
babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0:
33823387
version "7.0.0-beta.0"
33833388
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf"

0 commit comments

Comments
 (0)