diff --git a/package.json b/package.json index 31484f1..9f7a9f6 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,9 @@ "author": "Ronen Amiel", "license": "MIT", "dependencies": { - "babel-core": "^6.26.0", - "babel-preset-env": "^1.6.1", - "babel-preset-es2015": "^6.24.1", - "babel-traverse": "^6.26.0", + "@babel/core": "^7.4.3", + "@babel/preset-env": "^7.4.3", + "@babel/traverse": "^7.4.3", "babylon": "^6.18.0", "eslint": "^4.17.0", "eslint-config-airbnb-base": "^12.1.0", diff --git a/src/minipack.js b/src/minipack.js index ceecb73..09ddcde 100644 --- a/src/minipack.js +++ b/src/minipack.js @@ -29,8 +29,8 @@ const fs = require('fs'); const path = require('path'); const babylon = require('babylon'); -const traverse = require('babel-traverse').default; -const {transformFromAst} = require('babel-core'); +const traverse = require('@babel/traverse').default; +const { transformFromAst } = require('@babel/core'); let ID = 0; @@ -84,7 +84,7 @@ function createAsset(filename) { // our code. We use `babel-preset-env` to transpile our code to something // that most browsers can run. const {code} = transformFromAst(ast, null, { - presets: ['env'], + presets: ['@babel/env'], }); // Return all information about this module.