{"_id":"babel-plugin-transform-global-system-wrapper","_rev":"11-434a34235a6e42cce5411c8213471c53","name":"babel-plugin-transform-global-system-wrapper","description":"Converts global scripts into named System.registerDynamic('name', [], ...","dist-tags":{"latest":"0.3.4"},"versions":{"0.0.1":{"name":"babel-plugin-transform-global-system-wrapper","version":"0.0.1","description":"Converts global scripts into named System.registerDynamic('name', [], ...","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"author":"","license":"MIT","main":"lib/index.js","dependencies":{"babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.10.4","babel-preset-es2015":"^6.3.13","babel-register":"^6.9.0","file-exists":"^1.0.0","mocha":"^2.2.5","rimraf":"^2.5.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel","plugin","systemjs","babel-plugin"],"gitHead":"ebc6e9e0de3e338462bc31314a8df548cd64d8cd","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","_id":"babel-plugin-transform-global-system-wrapper@0.0.1","_shasum":"afb469cec0e04689b9fe7e8b1fd280fc94a6d8f2","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"asapach","email":"dreamsonic@tut.by"},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"}],"dist":{"shasum":"afb469cec0e04689b9fe7e8b1fd280fc94a6d8f2","tarball":"https://registry.npmjs.org/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.0.1.tgz","integrity":"sha512-TyuSfaBK/gtse+ZHHwmxvG8faSAci2aseAHrVVdYpjqwiQ8zxBnYoxt04NMxtJcGRYTLOg47VSKZ80POWNDYnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwOAKKdxFzViEaKOPMCVU2fUMZBE8eOcF67e89Lyhj9QIhALvKledujL3ZOrEijKj94hmY9VWl3vpl/jQMcYGE0zVl"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.0.1.tgz_1469370560120_0.5240150955505669"}},"0.1.0":{"name":"babel-plugin-transform-global-system-wrapper","version":"0.1.0","description":"Converts global scripts into named System.registerDynamic('name', [], ...","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"author":"","license":"MIT","main":"lib/index.js","dependencies":{"babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.10.4","babel-preset-es2015":"^6.3.13","babel-register":"^6.9.0","file-exists":"^1.0.0","mocha":"^2.2.5","rimraf":"^2.5.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel","plugin","systemjs","babel-plugin"],"gitHead":"5ea1f5bf89f0eb7d8e338bd43881bde70d5e9312","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","_id":"babel-plugin-transform-global-system-wrapper@0.1.0","_shasum":"fd4e4e43e4a7db3d83fdc64be5fa31ca7a94b1e1","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"guybedford","email":"guybedford@gmail.com"},"dist":{"shasum":"fd4e4e43e4a7db3d83fdc64be5fa31ca7a94b1e1","tarball":"https://registry.npmjs.org/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.1.0.tgz","integrity":"sha512-sn5GLjoOaU7bkWuWmcip8NB1PrczHng2pjocbsS9kB9UZ6Z3RaqgMkwtGFO8auYrpMttNqxg7wuwsrTP1Oxqew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxGBUiBxzQ1eNqOISltfODE8eQveednycN9DGjAUEAXAiEAzx0HUtspWcUE7v4gBlOsrOmxjfvZIPa1YQA3ZDrkMh8="}]},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"},{"name":"guybedford","email":"guybedford@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.1.0.tgz_1485179179370_0.9294314477592707"}},"0.2.0":{"name":"babel-plugin-transform-global-system-wrapper","version":"0.2.0","description":"Converts global scripts into named System.registerDynamic('name', [], ...","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"author":"","license":"MIT","main":"lib/index.js","dependencies":{"babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.10.4","babel-preset-es2015":"^6.3.13","babel-register":"^6.9.0","file-exists":"^1.0.0","mocha":"^2.2.5","rimraf":"^2.5.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel","plugin","systemjs","babel-plugin"],"gitHead":"af3388f91780746f97ae56ec219b68229e8055cc","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","_id":"babel-plugin-transform-global-system-wrapper@0.2.0","_shasum":"878c5f459b1d6f4b3b5c4136c14233fc3f7431f4","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"guybedford","email":"guybedford@gmail.com"},"dist":{"shasum":"878c5f459b1d6f4b3b5c4136c14233fc3f7431f4","tarball":"https://registry.npmjs.org/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.2.0.tgz","integrity":"sha512-N3mI3hXd1zifpoX0sAV65284M7ltBkBrd1XaweQdFbLU7Cet+1VLYR65RxAbvyDeDqYZX/LmutDughW0/XjBEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ+fu4bn2fkwF0R1XvrrH3R50xf+VBp840PdYkKE3OVQIhAPXR4ghfoLTi8m5/izW/cgU3RIoe6XZd3Zj9WcPUY3Jw"}]},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"},{"name":"guybedford","email":"guybedford@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.2.0.tgz_1485244362250_0.010729034896939993"}},"0.3.0":{"name":"babel-plugin-transform-global-system-wrapper","version":"0.3.0","description":"Converts global scripts into named System.registerDynamic('name', [], ...","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"author":"","license":"MIT","main":"lib/index.js","dependencies":{"babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.10.4","babel-preset-es2015":"^6.3.13","babel-register":"^6.9.0","file-exists":"^1.0.0","mocha":"^2.2.5","rimraf":"^2.5.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel","plugin","systemjs","babel-plugin"],"gitHead":"34a7a0e1bbc0ee02d81ed89d2eb290182a136193","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","_id":"babel-plugin-transform-global-system-wrapper@0.3.0","_shasum":"ddea2a2dc3f802593bdc0d026edb887763a53d6a","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"guybedford","email":"guybedford@gmail.com"},"dist":{"shasum":"ddea2a2dc3f802593bdc0d026edb887763a53d6a","tarball":"https://registry.npmjs.org/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.0.tgz","integrity":"sha512-5zfQaPlk0JyVMAoEQuAGy0/blGRqMUFR2gdCV3U5XyZIOQyhi42xX/RqpP8PwNmnUOTe3AJVnxqAiwm+x24p+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYuf7RSXiOuf4vSqBaew6jjm8sfowmaHHNfyo5+9JttAIgToy4A7tu6BH7bg6RERszj0xT5WIdTo5cXFE+7FkLbC8="}]},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"},{"name":"guybedford","email":"guybedford@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.3.0.tgz_1485935631790_0.413158793002367"}},"0.3.1":{"name":"babel-plugin-transform-global-system-wrapper","version":"0.3.1","description":"Converts global scripts into named System.registerDynamic('name', [], ...","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"author":"","license":"MIT","main":"lib/index.js","dependencies":{"babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.10.4","babel-preset-es2015":"^6.3.13","babel-register":"^6.9.0","file-exists":"^1.0.0","mocha":"^2.2.5","rimraf":"^2.5.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel","plugin","systemjs","babel-plugin"],"gitHead":"4b3a4c4e52d3375411406bdcdc627c0a89c11c5c","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","_id":"babel-plugin-transform-global-system-wrapper@0.3.1","_shasum":"2ebea1e8a8acdf769dc440b1a64bcdb893cb5e89","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"guybedford","email":"guybedford@gmail.com"},"dist":{"shasum":"2ebea1e8a8acdf769dc440b1a64bcdb893cb5e89","tarball":"https://registry.npmjs.org/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.1.tgz","integrity":"sha512-j7doid118YmIN6eBiHuJJRU6PU6AwIfuzPr7rXb3JB9rvLbLD01s0YxJoBH5OWLl2Z+xGwYTtuupgYVvG5ufPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoy+v2itqLGpuMWY5RNTHK32UCmLmCXvEWqQk1UT7vPwIhAKwjemLe7dvy68l1/ALUVw1lRd7XXVGunAcYbcf9nFhN"}]},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"},{"name":"guybedford","email":"guybedford@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.3.1.tgz_1496126102188_0.7498114861082286"}},"0.3.2":{"name":"babel-plugin-transform-global-system-wrapper","version":"0.3.2","description":"Converts global scripts into named System.registerDynamic('name', [], ...","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"author":"","license":"MIT","main":"lib/index.js","dependencies":{"babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.10.4","babel-preset-es2015":"^6.3.13","babel-register":"^6.9.0","file-exists":"^1.0.0","mocha":"^2.2.5","rimraf":"^2.5.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel","plugin","systemjs","babel-plugin"],"gitHead":"883e79df6afee5cac5466ec8b2a69ea79eaec3cf","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","_id":"babel-plugin-transform-global-system-wrapper@0.3.2","_shasum":"7772cc92d4c72784d67e6084c3643acd3275b4da","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"guybedford","email":"guybedford@gmail.com"},"dist":{"shasum":"7772cc92d4c72784d67e6084c3643acd3275b4da","tarball":"https://registry.npmjs.org/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.2.tgz","integrity":"sha512-P36Fj0hSxHzIebnjfRmDwDRtPuIJsg/ulaJoBcLoZb5vlh84HCNgSarQa7YuA3EVXgfKvlWU+moOsRJlHRx8MA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIFqM7zjC6HjABWzjNDvKMAKuGG/qBb+esBt2ez0ZmIAiBDTohYDhTU4550NZZc0vh1JvW4M3ii5zmU4XBpNSvo5Q=="}]},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"},{"name":"guybedford","email":"guybedford@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.3.2.tgz_1496130190918_0.8569364422000945"}},"0.3.4":{"name":"babel-plugin-transform-global-system-wrapper","version":"0.3.4","description":"Converts global scripts into named System.registerDynamic('name', [], ...","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"author":"","license":"MIT","main":"lib/index.js","dependencies":{"babel-template":"^6.9.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-core":"^6.10.4","babel-preset-es2015":"^6.3.13","babel-register":"^6.9.0","file-exists":"^1.0.0","mocha":"^2.2.5","rimraf":"^2.5.3"},"scripts":{"clean":"rimraf lib","build":"babel src -d lib","test":"mocha --compilers js:babel-register","test:watch":"npm run test -- --watch","prepublish":"npm run clean && npm run build"},"keywords":["babel","plugin","systemjs","babel-plugin"],"gitHead":"bfa9de6a3037613f8bfd38b919adb5ded41e7b9d","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","_id":"babel-plugin-transform-global-system-wrapper@0.3.4","_shasum":"948dd7d29fc21447e39bd3447f2debc7f2f73aac","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"guybedford","email":"guybedford@gmail.com"},"dist":{"shasum":"948dd7d29fc21447e39bd3447f2debc7f2f73aac","tarball":"https://registry.npmjs.org/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.4.tgz","integrity":"sha512-WDCmdUeRLqn25gzR7fYmNOWVXwnDOhR0cM0uOJ0kDP3EdF2Y1I6G6y5pBDeZoLOgu5xCe8cEzOMKRljxu0oGdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAYTXKerQH2J+n3YIF1ULcpKN0sqEKtskBH5lpisW3pwIgCfA+fXR5KNzsY2FVvVYWhocziYMCTKZ8OefJAJLPMEo="}]},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"},{"name":"guybedford","email":"guybedford@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.3.4.tgz_1496133104812_0.6907191972713917"}}},"readme":"# babel-plugin-transform-global-system-wrapper\n\nConverts global scripts into named `System.registerDynamic('name', [], ...`\n\n## Example\n\n**In**\n\n```js\nfoo = \"bar\";\n```\n\n**Out**\n\n```js\nSystem.registerDynamic(\"foo\", [], false, function ($__require, $__exports, $__module) {\n  var _retrieveGlobal = System.registry.get(\"@@global-helpers\").prepareGlobal($__module.id, \"foo\", null);\n\n  (function ($__global) {\n    foo = \"bar\";\n  })(this);\n\n  return _retrieveGlobal();\n});\n```\n\n## Installation\n\n```sh\n$ npm install babel-plugin-transform-global-system-wrapper\n```\n\n## Usage\n\n### Via `.babelrc`\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\n    [\"transform-global-system-wrapper\", {\n      \"deps\": [\"baz.js\"],\n      \"exportName\": \"foo\",\n      \"globals\": {\n        \"jquery\": \"jquery.js\"\n      },\n      \"moduleName\": \"foo\",\n      \"systemGlobal\": \"SystemJS\"\n    }]\n  ]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins transform-global-system-wrapper script.js\n```\n\n### Via Node API (Recommended)\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\n    [\"transform-global-system-wrapper\", {\n      deps: [\"baz.js\"],\n      exportName: \"foo\",\n      globals: {\n        \"jquery\": \"jquery.js\"\n      },\n      moduleName: \"foo\",\n      systemGlobal: \"SystemJS\",\n      esModule: true\n    }]\n  ]\n});\n```\n","maintainers":[{"email":"guybedford@gmail.com","name":"guybedford"},{"email":"dreamsonic@tut.by","name":"asapach"}],"time":{"modified":"2022-06-13T04:04:35.814Z","created":"2016-07-24T14:29:21.778Z","0.0.1":"2016-07-24T14:29:21.778Z","0.1.0":"2017-01-23T13:46:19.923Z","0.2.0":"2017-01-24T07:52:42.921Z","0.3.0":"2017-02-01T07:53:52.487Z","0.3.1":"2017-05-30T06:35:02.325Z","0.3.2":"2017-05-30T07:43:11.024Z","0.3.4":"2017-05-30T08:31:44.878Z"},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","keywords":["babel","plugin","systemjs","babel-plugin"],"repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"license":"MIT","readmeFilename":"README.md"}