Parcel would delete some random file like identity because it though it was not used, vite is smarter. Also remove unused imports
11 lines
239 B
TypeScript
11 lines
239 B
TypeScript
import docsearch from '@docsearch/js';
|
|
|
|
import './app.css';
|
|
import '@docsearch/css/dist/style.css';
|
|
|
|
docsearch({
|
|
container: '#docsearch',
|
|
indexName: 'docsearch',
|
|
appId: 'R2IYF7ETH7',
|
|
apiKey: '599cec31baffa4868cae4e79f180729b',
|
|
});
|