mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
Fix import extensions
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import jison from './.vite/jisonPlugin.js';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
extensions: [],
|
||||
extensions: ['.js'],
|
||||
},
|
||||
plugins: [jison()],
|
||||
plugins: [
|
||||
jison(),
|
||||
// @ts-expect-error According to the type definitions, rollup plugins are incompatible with vite
|
||||
typescript({ compilerOptions: { declaration: false } }),
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
globals: true,
|
||||
|
Reference in New Issue
Block a user