Skip to content

Commit 42a0a47

Browse files
authored
Merge pull request #79 from timlrx/fix-build-side-effect
Fix build side effect
2 parents b43a330 + 6e8d370 commit 42a0a47

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"module": "./dist/index.es.js",
1111
"types": "./dist/index.d.ts",
1212
"type": "module",
13+
"sideEffects": false,
1314
"exports": {
1415
".": {
1516
"types": "./dist/index.d.ts",

src/generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const getLanguage = (node) => {
2929
}
3030

3131
/**
32-
* @param {import('refractor/lib/core').Refractor} refractor
32+
* @param {import('refractor/core').Refractor} refractor
3333
* @param {string} defaultLanguage
3434
* @return {void}
3535
*/
@@ -167,7 +167,7 @@ const addNodePositionClosure = () => {
167167
* Pass in your own refractor object with the required languages registered:
168168
* https://github.com/wooorm/refractor#refractorregistersyntax
169169
*
170-
* @param {import('refractor/lib/core').Refractor} refractor
170+
* @param {import('refractor/core').Refractor} refractor
171171
* @return {import('unified').Plugin<[Options?], Root>}
172172
*/
173173
const rehypePrismGenerator = (refractor) => {

0 commit comments

Comments
 (0)