Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 6e35be9

Browse files
committed
Add native mappings in devtools-launchpad babel and webpack configs
1 parent d3b868d commit 6e35be9

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

packages/devtools-launchpad/.babelrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
"plugins": [
44
"transform-flow-strip-types",
55
"transform-async-to-generator",
6-
"transform-runtime",
7-
[
8-
"module-resolver",
9-
{
10-
"alias": {
11-
"devtools/client/shared/vendor/react": "react",
12-
"devtools/client/shared/vendor/react-dom": "react-dom"
13-
}
14-
}
15-
]
6+
"transform-runtime"
167
]
178
}

packages/devtools-launchpad/webpack.config.devtools.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const { DefinePlugin } = webpack;
77
const nativeMapping = {
88
react: "devtools/client/shared/vendor/react",
99
"react-dom": "devtools/client/shared/vendor/react-dom",
10+
"react-dom-factories": "devtools/client/shared/vendor/react-dom-factories",
11+
"prop-types": "devtools/client/shared/vendor/react-prop-types",
1012
lodash: "devtools/client/shared/vendor/lodash"
1113
};
1214

0 commit comments

Comments
 (0)