【发布时间】:2019-09-09 00:46:30
【问题描述】:
我一直在想。是否有任何库允许我将我使用的每个依赖项捆绑到一个包中,以便我可以从中导入所有内容?
例如:
import x from "react-native-x"
import y from "react-native-y"
import z from "react-native-z"
import { View } from "react-native"
import React from "react"
import a from "./a"
import b from "./../../b"
进入这个:
import {
x,
y,
z
View,
React,
a,
b
} from "./bundle"
【问题讨论】:
标签: javascript reactjs react-native webpack