Skip to content

Commit

Permalink
Merge pull request #6 from Kabe0/master
Browse files Browse the repository at this point in the history
Pushing in hotfix for loading ESM modules when the project using the …
  • Loading branch information
jleeson authored Mar 12, 2022
2 parents 355bfc2 + eda90e6 commit b09c7de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.0.2",
"description": "A Rollup plugin to import CSS into JavaScript",
"main": "dist/plugin.cjs.js",
"module": "dist/plugin.esm.js",
"module": "dist/plugin.esm.mjs",
"types": "types/plugin.d.ts",
"scripts": {
"build": "rollup -c",
Expand All @@ -23,8 +23,8 @@
"exports": {
".": {
"require": "./dist/plugin.cjs.js",
"import": "./dist/plugin.esm.js",
"default": "./dist/plugin.esm.js"
"import": "./dist/plugin.esm.mjs",
"default": "./dist/plugin.esm.mjs"
}
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { builtinModules } from "module";
export default {
input: "src/index.js",
output: [
{ file: "dist/plugin.esm.js", format: "esm" },
{ file: "dist/plugin.esm.mjs", format: "esm" },
{ file: "dist/plugin.cjs.js", format: "cjs", exports: "default" },
],
plugins: [
Expand Down

0 comments on commit b09c7de

Please sign in to comment.