Skip to content

Commit

Permalink
fix(web): import helmet from node_modules (#9927)
Browse files Browse the repository at this point in the history
We can import this straight from node_modules instead of loading all the
index which imports a bunch of other files and node_modules first.
  • Loading branch information
jtoar committed Jan 29, 2024
1 parent 443c3af commit 3890514
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions packages/web/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ module.exports = {
'**/*.test.+(ts|tsx|js|jsx)',
'!**/__typetests__/*.+(ts|tsx|js|jsx)',
],
globals: {
// Required for code that use experimental flags
RWJS_ENV: {},
},
}
2 changes: 1 addition & 1 deletion packages/web/src/components/Metadata.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { Head as HelmetHead } from '../index'
import { Helmet as HelmetHead } from 'react-helmet-async'

type ValueOrCollection<T> = T | ValueOrCollection<T>[] | Record<string, T>
type ParentValue = ValueOrCollection<string>
Expand Down

0 comments on commit 3890514

Please sign in to comment.