Skip to content

Commit

Permalink
fix(esm): add js file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
craftzdog committed Mar 6, 2024
1 parent 4d3b4be commit c450b39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./dist/config": {
"import": "./dist/config.js",
"types": "./dist/config.d.ts"
},
"./styles/index.css": {
"import": "./styles/index.css",
"require": "./styles/index.css"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { Plugin } from 'unified'
import type { BuildVisitor } from 'unist-util-visit'
import { visit } from 'unist-util-visit'

import { Config, defaultConfig } from './config'
import { Config, defaultConfig } from './config.js'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const remarkGfmBlockquoteAdmonitionsPlugin: Plugin = () => (tree: any) => {
Expand Down

0 comments on commit c450b39

Please sign in to comment.