Skip to content

Commit 3f0bd59

Browse files
committed
Removing babel-cli in favor of tsc for es5 distribution
1 parent 6874208 commit 3f0bd59

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

babel.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"README.md"
1313
],
1414
"scripts": {
15-
"build": "rimraf dist/ && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && npm run build-web",
16-
"build-web": "BABEL_ENV=web babel dist/esm --config-file=./babel.config.js --out-dir=dist/web --source-maps=true",
15+
"build": "rimraf dist/ && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && tsc -p tsconfig.es5.json",
1716
"pretest": "npm run build",
1817
"test": "echo \"It built ok, that'll do for now\"",
1918
"prepack": "npm run build",
@@ -40,7 +39,6 @@
4039
},
4140
"homepage": "https://github.com/httptoolkit/react-reverse-portal#readme",
4241
"devDependencies": {
43-
"@babel/cli": "^7.6.4",
4442
"@babel/core": "^7.5.5",
4543
"@storybook/addon-storysource": "^5.1.11",
4644
"@storybook/addons": "^5.1.11",

tsconfig.es5.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)