mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 09:36:43 +03:00
c379a62081
* Revert "Remove React from page bundle (#1031)"
This reverts commit fdfbc1942e
.
* redux-devtools
* d3-state-visualizer
* d3tooltip
* map2tree
* react-base16-styling
* react-dock and react-json-tree
* redux-devtools-app
* redux-devtools-chart-monitor
* redux-devtools-dock-monitor
* redux-devtools-extension
* redux-devtools-inspector-monitor-test-tab
* redux-devtools-inspector-monitor-trace-tab
* redux-devtools-instrument
* redux-devtools-log-monitor and redux-devtools-remote
* redux-devtools-rtk-query-monitor
* redux-devtools-serialize
* redux-devtools-slider-monitor
* redux-devtools-ui
* redux-devtools-utils
* Fix build
* Fix storybook build
Storybook loads the babel.config.json but not .babelrc.json. We actually don't want to load the babel config because it uses @babel/runtime which can't be resolved with Yarn PnP.
60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
import typescript from 'rollup-plugin-typescript2';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import babel from '@rollup/plugin-babel';
|
|
import { terser } from 'rollup-plugin-terser';
|
|
|
|
const config = [
|
|
{
|
|
input: 'src/index.tsx',
|
|
output: {
|
|
name: 'ReactJsonTree',
|
|
file: 'lib/umd/react-json-tree.js',
|
|
format: 'umd',
|
|
globals: {
|
|
react: 'React',
|
|
},
|
|
},
|
|
plugins: [
|
|
typescript({
|
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
|
}),
|
|
resolve(),
|
|
commonjs(),
|
|
babel({
|
|
babelHelpers: 'runtime',
|
|
extensions: ['.ts', '.tsx'],
|
|
plugins: ['@babel/plugin-transform-runtime'],
|
|
}),
|
|
],
|
|
external: ['react'],
|
|
},
|
|
{
|
|
input: 'src/index.tsx',
|
|
output: {
|
|
name: 'ReactJsonTree',
|
|
file: 'lib/umd/react-json-tree.min.js',
|
|
format: 'umd',
|
|
globals: {
|
|
react: 'React',
|
|
},
|
|
},
|
|
plugins: [
|
|
typescript({
|
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
|
}),
|
|
resolve(),
|
|
commonjs(),
|
|
babel({
|
|
babelHelpers: 'runtime',
|
|
extensions: ['.ts', '.tsx'],
|
|
plugins: ['@babel/plugin-transform-runtime'],
|
|
}),
|
|
terser(),
|
|
],
|
|
external: ['react'],
|
|
},
|
|
];
|
|
|
|
export default config;
|