Skip to content

Commit

Permalink
Chore: fix playground (#2046)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Nov 23, 2022
1 parent 55daf43 commit 0fd431e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.vitepress/build-system/build.ts
Expand Up @@ -16,7 +16,7 @@ const dirname = path.dirname(
build(
path.join(dirname, './src/eslint.mjs'),
path.join(dirname, './shim/eslint.mjs'),
['path', 'assert', 'util']
['path', 'assert', 'util', 'esquery']
)
build(
path.join(dirname, '../../../node_modules/assert'),
Expand Down
5 changes: 5 additions & 0 deletions docs/.vitepress/build-system/shim/esquery.mjs
@@ -0,0 +1,5 @@
import esquery from '../../../../node_modules/esquery/dist/esquery.esm.js'

export const { parse, match, traverse, matches, query } = esquery

export { default } from '../../../../node_modules/esquery/dist/esquery.esm.js'
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Expand Up @@ -154,6 +154,7 @@ export default defineConfig({
path: path.join(dirname, './build-system/shim/path.mjs'),

tslib: path.join(dirname, '../../node_modules/tslib/tslib.es6.js'),
esquery: path.join(dirname, './build-system/shim/esquery.mjs'),
globby: path.join(dirname, './build-system/shim/globby.mjs')
}
},
Expand Down

0 comments on commit 0fd431e

Please sign in to comment.