Skip to content

Commit

Permalink
initiatlize default cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbenz committed May 20, 2021
1 parent 2c0197a commit 4b4b103
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/optimizer/lib/DomTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const log = require('./log');
let fetch = require('cross-fetch');
const RuntimeVersion = require('@ampproject/toolbox-runtime-version/lib/RuntimeVersion');
const fetchRuntimeParameters = require('./fetchRuntimeParameters');
const cache = require('./cache');

/**
* AMP Optimizer Configuration only applying AMP validity perserving transformations.
Expand Down Expand Up @@ -136,6 +137,7 @@ const TRANSFORMATIONS_MINIMAL = [
];

const DEFAULT_CONFIG = {
cache,
fetch,
log,
transformations: TRANSFORMATIONS_AMP_FIRST,
Expand Down

0 comments on commit 4b4b103

Please sign in to comment.