diff --git a/config/watcher.ts b/config/watcher.ts index 10dd6e54d..29c541528 100644 --- a/config/watcher.ts +++ b/config/watcher.ts @@ -16,6 +16,9 @@ const config: Config = { }, compileRelayStream: { paths: [ + "core/client/admin/**/*.ts", + "core/client/admin/**/*.tsx", + "core/client/admin/**/*.graphql", "core/client/stream/**/*.ts", "core/client/stream/**/*.tsx", "core/client/stream/**/*.graphql", diff --git a/src/core/build/createWebpackConfig.ts b/src/core/build/createWebpackConfig.ts index a19c33c47..61aa28e3c 100644 --- a/src/core/build/createWebpackConfig.ts +++ b/src/core/build/createWebpackConfig.ts @@ -416,6 +416,12 @@ export default function createWebpackConfig({ paths.appAuthIndex, // Remove deactivated entries. ], + admin: [ + // We ship polyfills by default + paths.appPolyfill, + ...devServerEntries, + paths.appAdminIndex, + ], }, plugins: [ ...baseConfig.plugins!, @@ -435,6 +441,14 @@ export default function createWebpackConfig({ inject: "body", ...htmlWebpackConfig, }), + // Generates an `admin.html` file with the