Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Add Lit polyfill support
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonrd committed Jul 26, 2021
1 parent 43eac3e commit 7cf4ec5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ const config = merge(
createSpaConfig({
outputDir: DIST_PATH,
legacyBuild: true,
polyfillsLoader: {
polyfills: {
custom: [
{
name: 'lit-polyfill-support',
path: 'node_modules/lit/polyfill-support.js',
test: "!('attachShadow' in Element.prototype)",
module: false,
},
],
},
},
developmentMode: process.env.ROLLUP_WATCH === 'true',
...(GENERATE_SERVICE_WORKER && {
workbox: workboxConfig,
Expand Down

0 comments on commit 7cf4ec5

Please sign in to comment.