Skip to content

Commit 4bf5f45

Browse files
zxbodyaJLHwung
andauthored
convert @babel/plugin-transform-runtime to typescript (#13216)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
1 parent acfff5d commit 4bf5f45

6 files changed

Lines changed: 5 additions & 1 deletion

File tree

packages/babel-plugin-transform-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"browser": {
1919
"./lib/get-runtime-path/index.js": "./lib/get-runtime-path/browser.js",
20-
"./src/get-runtime-path/index.js": "./src/get-runtime-path/browser.js"
20+
"./src/get-runtime-path/index.ts": "./src/get-runtime-path/browser.ts"
2121
},
2222
"dependencies": {
2323
"@babel/helper-module-imports": "workspace:^7.13.12",

packages/babel-plugin-transform-runtime/src/get-runtime-path/browser.js renamed to packages/babel-plugin-transform-runtime/src/get-runtime-path/browser.ts

File renamed without changes.

packages/babel-plugin-transform-runtime/src/get-runtime-path/index.js renamed to packages/babel-plugin-transform-runtime/src/get-runtime-path/index.ts

File renamed without changes.

packages/babel-plugin-transform-runtime/src/helpers.js renamed to packages/babel-plugin-transform-runtime/src/helpers.ts

File renamed without changes.
File renamed without changes.

tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"./packages/babel-plugin-proposal-async-do-expressions/src/**/*.ts",
2828
"./packages/babel-plugin-syntax-async-do-expressions/src/**/*.ts",
2929
"./packages/babel-plugin-transform-react-jsx/src/**/*.ts",
30+
"./packages/babel-plugin-transform-runtime/src/**/*.ts",
3031
"./packages/babel-plugin-transform-typescript/src/**/*.ts",
3132
"./packages/babel-template/src/**/*.ts",
3233
"./packages/babel-traverse/src/**/*.ts",
@@ -109,6 +110,9 @@
109110
"@babel/plugin-transform-react-jsx": [
110111
"./packages/babel-plugin-transform-react-jsx/src"
111112
],
113+
"@babel/plugin-transform-runtime": [
114+
"./packages/babel-plugin-transform-runtime/src"
115+
],
112116
"@babel/plugin-transform-typescript": [
113117
"./packages/babel-plugin-transform-typescript/src"
114118
],

0 commit comments

Comments
 (0)