mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Add other entrypoints
This commit is contained in:
parent
8a8c13f799
commit
23c35e750e
|
@ -3,15 +3,20 @@ import * as esbuild from 'esbuild';
|
||||||
await esbuild.build({
|
await esbuild.build({
|
||||||
entryPoints: [
|
entryPoints: [
|
||||||
{ out: 'background.bundle', in: 'src/background/index.ts' },
|
{ out: 'background.bundle', in: 'src/background/index.ts' },
|
||||||
{ out: 'remote.bundle', in: 'src/remote/index.tsx' },
|
{ out: 'options.bundle', in: 'src/options/index.tsx' },
|
||||||
{ out: 'window.bundle', in: 'src/window/index.tsx' },
|
{ out: 'window.bundle', in: 'src/window/index.tsx' },
|
||||||
|
{ out: 'remote.bundle', in: 'src/remote/index.tsx' },
|
||||||
|
{ out: 'devpanel.bundle', in: 'src/devpanel/index.tsx' },
|
||||||
|
{ out: 'devtools.bundle', in: 'src/devtools/index.ts' },
|
||||||
|
{ out: 'content.bundle', in: 'src/contentScript/index.ts' },
|
||||||
|
{ out: 'page.bundle', in: 'src/pageScript/index.ts' },
|
||||||
],
|
],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
minify: true,
|
logLevel: 'info',
|
||||||
outdir: 'dist',
|
outdir: 'dist',
|
||||||
|
minify: true,
|
||||||
loader: {
|
loader: {
|
||||||
'.pug': 'empty',
|
'.pug': 'empty',
|
||||||
'.woff2': 'file',
|
'.woff2': 'file',
|
||||||
},
|
},
|
||||||
logLevel: 'info',
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import '../chromeApiMock';
|
||||||
import {
|
import {
|
||||||
injectOptions,
|
injectOptions,
|
||||||
getOptionsFromBg,
|
getOptionsFromBg,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import '../chromeApiMock';
|
||||||
import React, { CSSProperties, ReactNode } from 'react';
|
import React, { CSSProperties, ReactNode } from 'react';
|
||||||
import { createRoot, Root } from 'react-dom/client';
|
import { createRoot, Root } from 'react-dom/client';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import '../chromeApiMock';
|
||||||
import './devtools.pug';
|
import './devtools.pug';
|
||||||
|
|
||||||
function createPanel(url: string) {
|
function createPanel(url: string) {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import '../chromeApiMock';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
import OptionsComponent from './Options';
|
import OptionsComponent from './Options';
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import '../chromeApiMock';
|
||||||
import {
|
import {
|
||||||
ActionCreatorObject,
|
ActionCreatorObject,
|
||||||
evalAction,
|
evalAction,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user