{"_id":"babel-plugin-dynamic-import-node-sync","_rev":"2856171","name":"babel-plugin-dynamic-import-node-sync","description":"Babel 7 plugin to transpile import() to a require(), for node","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"zlatkofedor","email":"zfedor@gmail.com"}],"time":{"modified":"2022-09-06T16:44:55.000Z","created":"2017-04-14T11:51:52.274Z","2.0.1":"2018-02-03T16:05:26.279Z","1.0.1":"2017-04-14T11:51:52.274Z"},"users":{},"author":{"name":"Zlatko Fedor","email":"zlatkofedor@cherryprojects.com"},"repository":{"type":"git","url":"git+https://github.com/seeden/babel-plugin-dynamic-import-node-sync.git"},"versions":{"2.0.1":{"name":"babel-plugin-dynamic-import-node-sync","version":"2.0.1","description":"Babel 7 plugin to transpile import() to a require(), for node","main":"lib/index.js","directories":{"test":"test"},"scripts":{"clean":"rimraf lib","prebuild":"npm run clean","build":"babel src --out-dir lib","prepare":"npm run build","pretest":"npm run lint","test":"npm run tests-only","tests-only":"mocha","lint":"eslint .","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/seeden/babel-plugin-dynamic-import-node-sync.git"},"keywords":["babel","plugin","dynamic","import","node","sync","ssr","react-router"],"author":{"name":"Zlatko Fedor","email":"zlatkofedor@cherryprojects.com"},"license":"MIT","bugs":{"url":"https://github.com/seeden/babel-plugin-dynamic-import-node-sync/issues"},"homepage":"https://github.com/seeden/babel-plugin-dynamic-import-node-sync#readme","devDependencies":{"@babel/core":"^7.0.0-beta.39","airbnb-js-shims":"^1.4.1","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^8.2.1","babel-plugin-transform-es2015-template-literals":"^6.22.0","babel-preset-airbnb":"^2.4.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","eslint":"^4.17.0","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.8.0","in-publish":"^2.0.0","mocha":"^5.0.0","rimraf":"^2.6.2","safe-publish-latest":"^1.1.1"},"dependencies":{"@babel/plugin-syntax-dynamic-import":"^7.0.0-beta.39"},"gitHead":"463770cdc6e454ccaa68bf540b4748b6716ad6fe","_id":"babel-plugin-dynamic-import-node-sync@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"zlatkofedor","email":"zfedor@gmail.com"},"dist":{"shasum":"698be7a91ffcdab2986027ed6575b162560d4384","size":3077,"noattachment":false,"key":"/babel-plugin-dynamic-import-node-sync/-/babel-plugin-dynamic-import-node-sync-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-dynamic-import-node-sync/download/babel-plugin-dynamic-import-node-sync-2.0.1.tgz"},"maintainers":[{"name":"zlatkofedor","email":"zfedor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-dynamic-import-node-sync-2.0.1.tgz_1517673925416_0.07487171469256282"},"_cnpmcore_publish_time":"2021-12-20T08:08:24.219Z","publish_time":1517673926279,"_cnpm_publish_time":1517673926279},"1.0.1":{"name":"babel-plugin-dynamic-import-node-sync","version":"1.0.1","description":"Babel plugin to transpile import() to a require(), for node","main":"lib/index.js","directories":{"test":"test"},"scripts":{"build":"babel src --out-dir lib","clean":"rimraf lib","test":"npm run lint && npm run tests-only","tests-only":"mocha","lint":"eslint .","prepublish":"in-publish && safe-publish-latest && npm run build || not-in-publish","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/seeden/babel-plugin-dynamic-import-node-sync.git"},"keywords":["babel","plugin","dynamic","import","node","sync","ssr","react-router"],"author":{"name":"Zlatko Fedor","email":"zlatkofedor@cherryprojects.com"},"license":"MIT","bugs":{"url":"https://github.com/seeden/babel-plugin-dynamic-import-node-sync/issues"},"homepage":"https://github.com/seeden/babel-plugin-dynamic-import-node-sync#readme","devDependencies":{"airbnb-js-shims":"^1.1.1","babel-cli":"^6.24.0","babel-core":"^6.24.0","babel-eslint":"^7.1.1","babel-preset-airbnb":"^2.2.3","babel-register":"^6.24.0","chai":"^3.5.0","eslint":"^3.18.0","eslint-config-airbnb-base":"^11.1.1","eslint-plugin-import":"^2.2.0","in-publish":"^2.0.0","mocha":"^3.2.0","rimraf":"^2.6.1","safe-publish-latest":"^1.1.1"},"dependencies":{"babel-plugin-syntax-dynamic-import":"^6.18.0","babel-template":"^6.23.0","babel-types":"^6.23.0"},"gitHead":"22ed2a0d5673267e99a6e626e547b24727a194fa","_id":"babel-plugin-dynamic-import-node-sync@1.0.1","_shasum":"2e6792d6c9cdf24acc3b50b61edd97484d46e2f3","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"zlatkofedor","email":"zfedor@gmail.com"},"dist":{"shasum":"2e6792d6c9cdf24acc3b50b61edd97484d46e2f3","size":3369,"noattachment":false,"key":"/babel-plugin-dynamic-import-node-sync/-/babel-plugin-dynamic-import-node-sync-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-dynamic-import-node-sync/download/babel-plugin-dynamic-import-node-sync-1.0.1.tgz"},"maintainers":[{"name":"zlatkofedor","email":"zfedor@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-dynamic-import-node-sync-1.0.1.tgz_1492170710426_0.14678457961417735"},"_cnpmcore_publish_time":"2021-12-20T08:08:24.128Z","publish_time":1492170712274,"_cnpm_publish_time":1492170712274}},"readme":"# babel-plugin-dynamic-import-node-sync\n\nBabel 7 plugin to transpile async `import()` to sync a `require()`, for node. Matches the [proposed spec](https://github.com/domenic/proposal-import-function).\n\nI am using it for server-side rendering.\n\n## Difference from babel-plugin-dynamic-import-node\n\n**babel-plugin-dynamic-import-node-sync**\n```\nimport(SOURCE) => require(SOURCE)\n```\n\n**babel-plugin-dynamic-import-node**\n```\nimport(SOURCE) => Promise.resolve().then(() => require(SOURCE))\n```\n\n## Installation\n\n```sh\n$ npm install babel-plugin-dynamic-import-node-sync --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"dynamic-import-node-sync\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins dynamic-import-node-sync script.js\n```","_attachments":{},"homepage":"https://github.com/seeden/babel-plugin-dynamic-import-node-sync#readme","bugs":{"url":"https://github.com/seeden/babel-plugin-dynamic-import-node-sync/issues"},"license":"MIT"}