Skip to content

Commit

Permalink
Merge pull request #901 from preactjs/chore/disable-browserslist-warning
Browse files Browse the repository at this point in the history
chore: Disables (non-actionable) browserslist warning for users
  • Loading branch information
developit authored Jan 19, 2022
2 parents 3401a9b + d9de528 commit 1a1b871
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-poets-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'wmr': patch
---

Disables (non-actionable) browserslist warning
5 changes: 3 additions & 2 deletions packages/wmr/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ const config = {
plugins: [
shebangPlugin(),
replace({
'process.env.VERSION': JSON.stringify(require('./package.json').version)
'process.env.VERSION': JSON.stringify(require('./package.json').version),
'process.env.BROWSERSLIST_IGNORE_OLD_DATA': true
}),
{
// This inlines some fs.promises.readFile() calls, while allowing them to run unbundled in Node.
Expand Down Expand Up @@ -116,7 +117,7 @@ const config = {
},
{
// This ensures the template files for rollup-plugin-visualizer are inlined
// rather than bundleds as fs.readFile()
// rather than bundled as fs.readFile()
name: 'fix-visualizer',
transform(code, id) {
if (/rollup-plugin-visualizer[/\\]dist[/\\]plugin[/\\]build-stats\.js$/.test(id)) {
Expand Down

0 comments on commit 1a1b871

Please sign in to comment.