Skip to content

Commit

Permalink
chore: change browser targets to "defaults, not op_mini all"
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Oct 8, 2024
1 parent 6b2f1b4 commit 419029a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default [
'ignore'
]
},
...ashNazg(['sauron', 'node']),
...ashNazg(['sauron', 'node', 'browser']),
{
settings: {
polyfills: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"jsonpath"
],
"browserslist": [
"cover 100%"
"defaults, not op_mini all"
],
"c8": {
"reporter": [
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const pkg = JSON.parse(await readFile('./package.json'));
*/
function getRollupObject ({
input, minifying, environment,
// eslint-disable-next-line no-shadow -- Ok
external,
format = 'umd'
}) {
Expand Down Expand Up @@ -71,6 +72,7 @@ function getRollupObject ({
function getRollupObjectByEnv ({minifying, environment}) {
const input = `src/jsonpath-${environment}.js`;
if (environment === 'node') {
// eslint-disable-next-line no-shadow -- Ok
const external = ['vm'];
return [
getRollupObject({
Expand Down

0 comments on commit 419029a

Please sign in to comment.