Skip to content

Commit 80ab7d0

Browse files
Update @babel/ dependencies
1 parent 493ac6c commit 80ab7d0

File tree

4 files changed

+1174
-1360
lines changed

4 files changed

+1174
-1360
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
},
2222
"devDependencies": {
2323
"@ava/babel": "^1.0.1",
24-
"@babel/cli": "^7.12.1",
25-
"@babel/core": "^7.12.3",
26-
"@babel/preset-env": "^7.12.1",
24+
"@babel/cli": "^7.19.3",
25+
"@babel/core": "^7.19.6",
26+
"@babel/preset-env": "^7.19.4",
2727
"ava": "^3.13.0",
2828
"babel-eslint": "^10.0.1",
2929
"babel-plugin-istanbul": "^6.0.0",

scripts/test-legacy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ webpack(config, (err, stats) => {
3535
assert.strictEqual(files.length, 1);
3636
fs.readFile(path.join(__dirname, "test-legacy-source/output", files[0]), (err, data) => {
3737
assert.strictEqual(err, null);
38-
const test = "var App = function App()";
38+
const test = "function App()";
3939
const subject = data.toString();
4040

4141
assert.notStrictEqual(subject.indexOf(test), -1);

test/loader.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test.cb("should transpile the code snippet", t => {
5454
t.true(files.length === 1);
5555
fs.readFile(path.resolve(t.context.directory, files[0]), (err, data) => {
5656
t.is(err, null);
57-
const test = "var App = function App()";
57+
const test = "function App()";
5858
const subject = data.toString();
5959

6060
t.not(subject.indexOf(test), -1);

0 commit comments

Comments
 (0)