babel-plugin-transform-dynamic-import
Version:
Babel plugin to transpile import() to a deferred require(), for node
66 lines (65 loc) • 2.51 kB
JSON
{
"name": "babel-plugin-transform-dynamic-import",
"version": "2.1.0",
"description": "Babel plugin to transpile import() to a deferred require(), for node",
"main": "lib/index.js",
"directories": {
"test": "test"
},
"scripts": {
"clean": "rimraf lib",
"prebuild": "npm run clean",
"build": "babel src --out-dir lib",
"pretest": "npm run lint && npm run build",
"test": "npm run tests-only",
"tests-only": "mocha",
"lint": "eslint .",
"prepublish": "not-in-publish || (safe-publish-latest && npm run build)",
"check-changelog": "expr $(git status --porcelain 2>/dev/null| grep \"^\\s*M.*CHANGELOG.md\" | wc -l) >/dev/null || (echo 'Please edit CHANGELOG.md' && exit 1)",
"check-only-changelog-changed": "(expr $(git status --porcelain 2>/dev/null| grep -v \"CHANGELOG.md\" | wc -l) >/dev/null && echo 'Only CHANGELOG.md may have uncommitted changes' && exit 1) || exit 0",
"version:major": "npm --no-git-tag-version version major",
"version:minor": "npm --no-git-tag-version version minor",
"version:patch": "npm --no-git-tag-version version patch",
"postversion": "git commit package.json CHANGELOG.md -m \"v$npm_package_version\" && npm run tag && git push && git push --tags",
"preversion": "npm run test && npm run check-changelog && npm run check-only-changelog-changed",
"tag": "git tag v$npm_package_version"
},
"repository": {
"type": "git",
"url": "git+https://github.com/airbnb/babel-plugin-dynamic-import-node.git"
},
"keywords": [
"babel",
"plugin",
"dynamic",
"import",
"node"
],
"author": "Jordan Gensler <jordan.gensler@airbnb.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/airbnb/babel-plugin-dynamic-import-node/issues"
},
"homepage": "https://github.com/airbnb/babel-plugin-dynamic-import-node#readme",
"devDependencies": {
"@babel/cli": "^7.1.0",
"@babel/core": "^7.1.0",
"@babel/plugin-transform-template-literals": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-es2015": "^7.0.0-beta.53",
"@babel/register": "^7.0.0",
"airbnb-js-shims": "^1.3.0",
"babel-eslint": "^9.0.0",
"chai": "^4.1.2",
"eslint": "^4.11.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.8.0",
"in-publish": "^2.0.0",
"mocha": "^4.0.1",
"rimraf": "^2.6.2",
"safe-publish-latest": "^1.1.1"
},
"dependencies": {
"@babel/plugin-syntax-dynamic-import": "^7.0.0"
}
}