Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0fd431e

Browse files
authoredNov 23, 2022
Chore: fix playground (#2046)
1 parent 55daf43 commit 0fd431e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
 

‎docs/.vitepress/build-system/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const dirname = path.dirname(
1616
build(
1717
path.join(dirname, './src/eslint.mjs'),
1818
path.join(dirname, './shim/eslint.mjs'),
19-
['path', 'assert', 'util']
19+
['path', 'assert', 'util', 'esquery']
2020
)
2121
build(
2222
path.join(dirname, '../../../node_modules/assert'),
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import esquery from '../../../../node_modules/esquery/dist/esquery.esm.js'
2+
3+
export const { parse, match, traverse, matches, query } = esquery
4+
5+
export { default } from '../../../../node_modules/esquery/dist/esquery.esm.js'

‎docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export default defineConfig({
154154
path: path.join(dirname, './build-system/shim/path.mjs'),
155155

156156
tslib: path.join(dirname, '../../node_modules/tslib/tslib.es6.js'),
157+
esquery: path.join(dirname, './build-system/shim/esquery.mjs'),
157158
globby: path.join(dirname, './build-system/shim/globby.mjs')
158159
}
159160
},

0 commit comments

Comments
 (0)
Please sign in to comment.