{"_id":"babel-plugin-transform-global-system-wrapper","_rev":"153331","name":"babel-plugin-transform-global-system-wrapper","description":"Converts global scripts into named System.registerDynamic('name', [], ...","dist-tags":{"latest":"0.3.4"},"maintainers":[{"name":"asapach","email":"dreamsonic@tut.by"},{"name":"guybedford","email":"guybedford@gmail.com"}],"time":{"modified":"2021-06-03T11:34:13.000Z","created":"2016-07-24T14:29:21.778Z","0.3.4":"2017-05-30T08:31:44.878Z","0.3.2":"2017-05-30T07:43:11.024Z","0.3.1":"2017-05-30T06:35:02.325Z","0.3.0":"2017-02-01T07:53:52.487Z","0.2.0":"2017-01-24T07:52:42.921Z","0.1.0":"2017-01-23T13:46:19.923Z","0.0.1":"2016-07-24T14:29:21.778Z"},"users":{},"author":"","repository":{"type":"git","url":"git+ssh://git@github.com/systemjs/babel-plugin-transform-global-system-wrapper.git"},"versions":{"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","size":4947,"noattachment":false,"key":"/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-global-system-wrapper/download/babel-plugin-transform-global-system-wrapper-0.3.4.tgz"},"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"},"directories":{},"publish_time":1496133104878,"_cnpm_publish_time":1496133104878,"_hasShrinkwrap":false},"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","size":4864,"noattachment":false,"key":"/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-global-system-wrapper/download/babel-plugin-transform-global-system-wrapper-0.3.2.tgz"},"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"},"directories":{},"publish_time":1496130191024,"_cnpm_publish_time":1496130191024,"_hasShrinkwrap":false},"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","size":4665,"noattachment":false,"key":"/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-global-system-wrapper/download/babel-plugin-transform-global-system-wrapper-0.3.1.tgz"},"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"},"directories":{},"publish_time":1496126102325,"_hasShrinkwrap":false,"_cnpm_publish_time":1496126102325},"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","size":4454,"noattachment":false,"key":"/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-global-system-wrapper/download/babel-plugin-transform-global-system-wrapper-0.3.0.tgz"},"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"},"directories":{},"publish_time":1485935632487,"_cnpm_publish_time":1485935632487,"_hasShrinkwrap":false},"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","size":4434,"noattachment":false,"key":"/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-global-system-wrapper/download/babel-plugin-transform-global-system-wrapper-0.2.0.tgz"},"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"},"directories":{},"publish_time":1485244362921,"_cnpm_publish_time":1485244362921,"_hasShrinkwrap":false},"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","size":4768,"noattachment":false,"key":"/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-global-system-wrapper/download/babel-plugin-transform-global-system-wrapper-0.1.0.tgz"},"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"},"directories":{},"publish_time":1485179179923,"_cnpm_publish_time":1485179179923,"_hasShrinkwrap":false},"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"},{"name":"guybedford","email":"guybedford@gmail.com"}],"dist":{"shasum":"afb469cec0e04689b9fe7e8b1fd280fc94a6d8f2","size":4522,"noattachment":false,"key":"/babel-plugin-transform-global-system-wrapper/-/babel-plugin-transform-global-system-wrapper-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-transform-global-system-wrapper/download/babel-plugin-transform-global-system-wrapper-0.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-global-system-wrapper-0.0.1.tgz_1469370560120_0.5240150955505669"},"directories":{},"publish_time":1469370561778,"_cnpm_publish_time":1469370561778,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper#readme","bugs":{"url":"https://github.com/systemjs/babel-plugin-transform-global-system-wrapper/issues"},"license":"MIT"}