Skip to content

Commit 633bbfd

Browse files
[#33] Fix utils import for ESM usage with '.js' suffix (#34)
* Fix ESM * 2.0.1
1 parent 289a306 commit 633bbfd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-css-injected-by-js",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Plugin } from 'vite';
22
import { OutputAsset, OutputChunk } from 'rollup';
3-
import { buildCSSInjectionCode, removeLinkStyleSheets } from './utils';
3+
import { buildCSSInjectionCode, removeLinkStyleSheets } from './utils.js';
44

55
/**
66
* Inject the CSS compiled with JS.

0 commit comments

Comments
 (0)