Skip to content

Commit

Permalink
Use public API of Browserslist (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ai authored Sep 25, 2024
1 parent e2d05fa commit 9d028d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const path = require("path");
const browserslist = require("browserslist");
const browserslistNode = require("browserslist/node");
const { version, homepage } = require("../package.json");
const flatTypeScriptConfigs = {};
const createRule = (name, browserstring, description, { ts = null } = {}) => {
Expand All @@ -25,7 +24,7 @@ const createRule = (name, browserstring, description, { ts = null } = {}) => {
),
create(context) {
let browsers = browserslist(browserstring);
const config = browserslistNode.findConfig(path.dirname(
const config = browserslist.findConfig(path.dirname(
context.filename ?? context.getFilename()
)) || {
defaults: "defaults",
Expand Down

0 comments on commit 9d028d2

Please sign in to comment.