Skip to content

Commit 35a9df0

Browse files
ship @babel/standalone source maps (#14863)
Co-authored-by: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com>
1 parent 9425eed commit 35a9df0

5 files changed

Lines changed: 15 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ aliases:
1212
- &artifact_babel
1313
path: ~/babel/packages/babel-standalone/babel.js
1414

15+
- &artifact_babel_sourcemap
16+
path: ~/babel/packages/babel-standalone/babel.js.map
17+
1518
- &artifact_babel_min
1619
path: ~/babel/packages/babel-standalone/babel.min.js
1720

21+
- &artifact_babel_min_sourcemap
22+
path: ~/babel/packages/babel-standalone/babel.min.js.map
23+
1824
- &test262_workdir
1925
working_directory: ~/babel/babel-test262-runner
2026

@@ -41,12 +47,14 @@ jobs:
4147
- restore_cache: *restore-yarn-cache
4248
# Builds babel-standalone with the regular Babel config
4349
# test-ci-coverage doesn't test babel-standalone, as trying to gather coverage
44-
- run: IS_PUBLISH=true make -j build-standalone-ci
50+
- run: NODE_ENV=production IS_PUBLISH=true make -j build-standalone-ci
4551
# data for a JS file that's several megabytes large is bound to fail. Here,
4652
# we just run the babel-standalone test separately.
4753
- run: yarn jest "\-standalone/test"
4854
- store_artifacts: *artifact_babel
55+
- store_artifacts: *artifact_babel_sourcemap
4956
- store_artifacts: *artifact_babel_min
57+
- store_artifacts: *artifact_babel_min_sourcemap
5058
- save_cache: *save-yarn-cache
5159

5260
test262:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ package-lock.json
7171
packages/babel-standalone/babel.js
7272
packages/babel-standalone/babel.js.map
7373
packages/babel-standalone/babel.min.js
74+
packages/babel-standalone/babel.min.js.map
7475
/codemods/*/lib
7576
/packages/babel-parser/build
7677
.idea/

Makefile.js

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

Makefile.source.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ target["prepublish-build"] = function () {
259259
target["prepublish-prepare-dts"]();
260260
},
261261
{
262+
NODE_ENV: "production",
262263
STRIP_BABEL_8_FLAG: "true",
263264
}
264265
);

packages/babel-standalone/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "./babel.js",
66
"files": [
77
"babel.js",
8-
"babel.min.js"
8+
"babel.js.map",
9+
"babel.min.js",
10+
"babel.min.js.map"
911
],
1012
"devDependencies": {
1113
"@babel/core": "workspace:^",

0 commit comments

Comments
 (0)