File tree Expand file tree Collapse file tree 7 files changed +4
-40
lines changed
Expand file tree Collapse file tree 7 files changed +4
-40
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ const windowGuardian = {
4848 functions : {
4949 import : ( url : string ) => import ( url ) ,
5050 } ,
51- automat : {
52- react : undefined ,
53- preact : undefined ,
54- emotion : undefined ,
55- emotionCore : undefined ,
56- emotionTheming : undefined ,
57- } ,
5851 readerRevenue : {
5952 changeGeolocation : ( ) => { } ,
6053 showMeTheEpic : ( ) => { } ,
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import {
2626} from '../../lib/contributions' ;
2727import { lazyFetchEmailWithTimeout } from '../../lib/fetchEmail' ;
2828import type { CanShowResult } from '../../lib/messagePicker' ;
29- import { setAutomat } from '../../lib/setAutomat' ;
3029import type { RenderingTarget } from '../../types/renderingTarget' ;
3130import type { TagType } from '../../types/tag' ;
3231
@@ -161,8 +160,6 @@ export const ReaderRevenueEpic = ({ props }: ModuleData<EpicProps>) => {
161160 const [ Epic , setEpic ] = useState < React . ElementType | null > ( null ) ;
162161
163162 useEffect ( ( ) => {
164- setAutomat ( ) ;
165-
166163 const { endPerformanceMeasure } = startPerformanceMeasure (
167164 'supporterRevenue' ,
168165 'contributions-epic-module' ,
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import { getToday } from '../../lib/dailyArticleCount';
3131import { lazyFetchEmailWithTimeout } from '../../lib/fetchEmail' ;
3232import { getZIndex } from '../../lib/getZIndex' ;
3333import type { CanShowResult } from '../../lib/messagePicker' ;
34- import { setAutomat } from '../../lib/setAutomat' ;
3534import type { RenderingTarget } from '../../types/renderingTarget' ;
3635import type { TagType } from '../../types/tag' ;
3736
@@ -305,8 +304,6 @@ export const ReaderRevenueBanner = ({
305304 const [ Banner , setBanner ] = useState < React . ElementType | null > ( null ) ;
306305
307306 useEffect ( ( ) => {
308- setAutomat ( ) ;
309-
310307 ( name === 'SignInPromptBanner'
311308 ? /* webpackChunkName: "sign-in-prompt-banner" */
312309 import ( `../marketing/banners/signInPrompt/SignInPromptBanner` )
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import {
2121 getPurchaseInfo ,
2222 shouldHideSupportMessaging ,
2323} from '../lib/contributions' ;
24- import { setAutomat } from '../lib/setAutomat' ;
2524import { useIsSignedIn } from '../lib/useAuthStatus' ;
2625import { useCountryCode } from '../lib/useCountryCode' ;
2726import { usePageViewId } from '../lib/usePageViewId' ;
@@ -72,8 +71,6 @@ const ReaderRevenueLinksRemote = ({
7271 return ;
7372 }
7473
75- setAutomat ( ) ;
76-
7774 const requestData : HeaderPayload = {
7875 targeting : {
7976 showSupportMessaging : ! hideSupportMessagingForUser ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -149,10 +149,12 @@ module.exports = ({ build }) => ({
149149} ) ;
150150
151151module . exports . transpileExclude = {
152+ // Exclude node_modules from transpilation
152153 and : [ / n o d e _ m o d u l e s / ] ,
154+ // Do not exclude i.e. include
153155 not : [
154- // Include all @guardian modules, except automat-modules
155- / @ g u a r d i a n \/ (? ! ( a u t o m a t - m o d u l e s ) ) / ,
156+ // Include all @guardian modules
157+ / @ g u a r d i a n \/ / ,
156158 // Include the dynamic-import-polyfill
157159 / d y n a m i c - i m p o r t - p o l y f i l l / ,
158160 / v a l i b o t / ,
Original file line number Diff line number Diff line change @@ -36,12 +36,6 @@ declare global {
3636 // by having multiple entrypoints in webpack, meaning we can't guarantee singleton behavior
3737 emotionCache ?: EmotionCache ;
3838 ophan ?: typeof ophan ;
39- // TODO expose as type from Automat client lib
40- automat : {
41- react : any ;
42- emotionReact : any ;
43- emotionReactJsxRuntime : any ;
44- } ;
4539 readerRevenue : ReaderRevenueDevUtils ;
4640 weeklyArticleCount : WeeklyArticleHistory | undefined ;
4741 dailyArticleCount : DailyArticleHistory | undefined ;
You can’t perform that action at this time.
0 commit comments