Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to babel 7 #2

Merged
merged 1 commit into from
Sep 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"presets": [
[ "es2015", { "loose": true } ]
],
"plugins": [
"transform-runtime"
]
"presets": [["@babel/preset-env", {
"targets": {
"node": "6"
},
"loose": true
}]],
"plugins": ["@babel/plugin-transform-runtime"]
}
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@
"type": "git",
"url": "https://github.com/pugjs/babylon-walk.git"
},
"engines": {
"node": ">= 6.0.0"
},
"author": "Timothy Gu <[email protected]>",
"license": "MIT",
"dependencies": {
"babel-runtime": "^6.11.6",
"babel-types": "^6.15.0",
"@babel/runtime": "^7.0.0",
"@babel/types": "^7.0.0",
"lodash.clone": "^4.5.0"
},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.14.0"
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion src/explode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/babel/babel/blob/07b3dc18a09f2217b38a3a63c8613add6df1b47d/packages/babel-traverse/src/visitors.js

// import * as messages from 'babel-messages';
import * as t from "babel-types";
import * as t from "@babel/types";
import clone from "lodash.clone";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as t from 'babel-types';
import * as t from '@babel/types';
import explode from './explode.js';

export function simple(node, visitors, state) {
Expand Down