Skip to content

Commit 24100d6

Browse files
committed
version 1.0.0
1 parent 9fbc74b commit 24100d6

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

package-lock.json

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

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"name": "@idrinth/rollup-plugin-react-modular-css",
33
"version": "1.0.0",
44
"description": "",
5-
"main": "index.js",
5+
"main": "src/index.js",
6+
"repository": {
7+
"url": "https://github.com/idrinth/rollup-plugin-react-modular-css"
8+
},
9+
"license": "MIT",
610
"scripts": {
711
"tsc": "tsc",
812
"prepublishOnly": "npm run tsc"
@@ -13,7 +17,8 @@
1317
},
1418
"devDependencies": {
1519
"@types/node": "^20.11.30",
16-
"@types/clean-css": "^4.2.11"
20+
"@types/clean-css": "^4.2.11",
21+
"typescript": "^5.4.3"
1722
},
1823
"private": false
1924
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function () {
3434
writeFileSync(`${process.cwd()}/public/assets/${name}-${hash}.min.css`, minified, 'utf8',);
3535
code.replace(
3636
matches[0],
37-
`import load from '@idrinth/rollup-plugin-react-modular-css';\n(() => load('${hash}', '${name}'))()`,
37+
`import load from '@idrinth/rollup-plugin-react-modular-css/src/load.js';\n(() => load('${hash}', '${name}'))()`,
3838
);
3939
}
4040
return code;

0 commit comments

Comments
 (0)