Skip to content

Commit

Permalink
fix: use namespace import for vite to support upcoming vite 3.0 esm (#…
Browse files Browse the repository at this point in the history
…5030)

* fix: use named imports from vite to support upcoming vite 3.0 esm

* fix: use namespace import for vite instead of named imports

* chore: update changeset
  • Loading branch information
dominikg committed May 23, 2022
1 parent ec7a2a3 commit 4f3b1db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-guests-sort.md
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

use namespace import for vite to support upcoming vite 3.0 esm
2 changes: 1 addition & 1 deletion packages/kit/src/core/build/build_service_worker.js
@@ -1,5 +1,5 @@
import fs from 'fs';
import vite from 'vite';
import * as vite from 'vite';
import { s } from '../../utils/misc.js';
import { deep_merge } from '../../utils/object.js';
import { normalize_path } from '../../utils/url.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/core/build/utils.js
@@ -1,4 +1,4 @@
import vite from 'vite';
import * as vite from 'vite';

/**
* @typedef {import('rollup').RollupOutput} RollupOutput
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/core/dev/index.js
@@ -1,6 +1,6 @@
import path from 'path';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import vite from 'vite';
import * as vite from 'vite';
import { deep_merge } from '../../utils/object.js';
import { print_config_conflicts } from '../config/index.js';
import { get_aliases, get_runtime_path } from '../utils.js';
Expand Down

0 comments on commit 4f3b1db

Please sign in to comment.