diff --git a/lib/index.js b/lib/index.js index 5388cde..e0a61a0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -14,7 +14,7 @@ * Whether to include positional information. */ -import {color} from 'unist-util-inspect/do-not-use-conditional-color' +import {color} from '#conditional-color' /** * Inspect a node, with color in Node, without color in browsers. diff --git a/package.json b/package.json index dc61f9b..f150f72 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,10 @@ "sideEffects": false, "type": "module", "exports": { - ".": "./index.js", - "./do-not-use-conditional-color": { + ".": "./index.js" + }, + "imports": { + "#conditional-color": { "node": "./lib/color.node.js", "default": "./lib/color.default.js" }