Skip to content

Commit 4027b8a

Browse files
authored
Merge pull request #5 from spong/master
Adds ES5 distribution
2 parents 796fa90 + 04b5ec0 commit 4027b8a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
"description": "Build an element once, move it anywhere",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
7+
"browser": "dist/web/index.js",
78
"types": "dist/index.d.ts",
89
"files": [
910
"dist/**/*.{js,ts,map}",
1011
"src/**/*",
1112
"README.md"
1213
],
1314
"scripts": {
14-
"build": "rimraf dist/ && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json",
15+
"build": "rimraf dist/ && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && tsc -p tsconfig.web.json",
1516
"pretest": "npm run build",
1617
"test": "echo \"It built ok, that'll do for now\"",
1718
"prepack": "npm run build",

tsconfig.web.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"target": "es5",
5+
"lib": ["es6", "dom"],
6+
"module": "es6",
7+
"outDir": "./dist/web"
8+
}
9+
}

0 commit comments

Comments
 (0)