Skip to content

Commit

Permalink
fix: window test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Jun 21, 2023
1 parent e8c550a commit c63a032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/doc-core/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
externals: ['@modern-js/mdx-rs-binding'],
esbuildOptions: options => {
options.banner = {
js: 'import { createRequire } from "module"; const require = createRequire(import.meta.url);',
js: 'import { createRequire } from "module";\nconst { url } = import.meta;\nconst require = createRequire(url);',
};
return options;
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/doc-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"./modern.config.ts",
"./tailwind.config.ts"
],
"exclude": ["runtime.ts", "theme.ts"]
"exclude": ["runtime.ts", "theme.ts", "node_modules"]
}

0 comments on commit c63a032

Please sign in to comment.