Skip to content

Commit

Permalink
feat: import rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyuyzl committed Dec 19, 2024
1 parent e149bc0 commit 6f13fa8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client';
import './index.css';
import Home from './pages/Home';

import 'htmlcache';
import 'htmlcache.js';

const root = createRoot(document.getElementById('root'));
setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion website/pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useLayoutEffect, useState } from 'react';
import { captureHtmlCache, removeHtmlCache, storageSense } from 'htmlcache';
import { captureHtmlCache, removeHtmlCache, storageSense } from 'htmlcache.js';
import hljs from 'highlight.js';
import 'highlight.js/styles/github-dark-dimmed.min.css';
import './index.less';
Expand Down
2 changes: 1 addition & 1 deletion website/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const projectRootDir = path.resolve(__dirname);
export default {
resolve: {
alias: {
htmlcache: path.resolve(projectRootDir, '../src'),
'htmlcache.js': path.resolve(projectRootDir, '../src'),
},
},
assetsInclude: ['**/*.md'],
Expand Down

0 comments on commit 6f13fa8

Please sign in to comment.