mirror of
https://github.com/embarklabs/subspace.git
synced 2025-01-20 19:39:30 +00:00
f62e3fc907
* Lerna * React components extracted to separate package * Subspace requires a web3 object instead of a provider due to https://github.com/ethereum/web3.js/issues/1510 * Update react example to use components
68 lines
1.7 KiB
JavaScript
68 lines
1.7 KiB
JavaScript
module.exports = api => {
|
|
api.cache(true);
|
|
|
|
return {
|
|
env: {
|
|
browser: {
|
|
presets: [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
corejs: 3,
|
|
modules: false,
|
|
shippedProposals: true,
|
|
targets: {browsers: "defaults"},
|
|
useBuiltIns: "usage"
|
|
}
|
|
]
|
|
],
|
|
plugins: [
|
|
[
|
|
"@babel/plugin-transform-runtime",
|
|
{
|
|
corejs: 3,
|
|
useESModules: true
|
|
}
|
|
],
|
|
"@babel/plugin-proposal-export-default-from",
|
|
"@babel/plugin-proposal-class-properties",
|
|
"@babel/plugin-proposal-private-methods",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
|
"@babel/plugin-proposal-optional-chaining",
|
|
"@babel/plugin-transform-react-jsx"
|
|
]
|
|
},
|
|
module: {
|
|
presets: [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
corejs: 3,
|
|
modules: false,
|
|
shippedProposals: true,
|
|
targets: {node: "current"},
|
|
useBuiltIns: "usage"
|
|
}
|
|
]
|
|
],
|
|
plugins: [
|
|
[
|
|
"@babel/plugin-transform-runtime",
|
|
{
|
|
corejs: 3,
|
|
useESModules: true
|
|
}
|
|
],
|
|
"@babel/plugin-proposal-export-default-from",
|
|
"@babel/plugin-proposal-class-properties",
|
|
"@babel/plugin-proposal-private-methods",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
|
"@babel/plugin-proposal-optional-chaining",
|
|
"@babel/plugin-transform-react-jsx"
|
|
]
|
|
}
|
|
},
|
|
sourceMaps: true
|
|
};
|
|
};
|