Skip to content

Commit da4202b

Browse files
committed
Export AMD/Global name as preactRenderToString
1 parent c12691e commit da4202b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "preact-render-to-string",
3+
"amdName": "preactRenderToString",
34
"version": "1.4.1",
45
"description": "Render JSX to an HTML string, with support for Preact components.",
56
"main": "dist/index.js",
67
"scripts": {
7-
"build": "babel src -s -d dist",
8+
"build": "babel src -s -d dist --module-id $npm_package_amdName",
89
"test": "eslint {src,test} && mocha --compilers js:babel/register test/**/*.js",
910
"prepublish": "npm run build",
1011
"release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"

0 commit comments

Comments
 (0)