{"id":13804149,"url":"https://github.com/PatrickJS/traceur-compiler-loader","last_synced_at":"2025-05-13T17:31:34.193Z","repository":{"id":28319337,"uuid":"31832267","full_name":"PatrickJS/traceur-compiler-loader","owner":"PatrickJS","description":"Up to date Traceur Compiler  loader for Webpack","archived":false,"fork":false,"pushed_at":"2015-03-08T22:40:32.000Z","size":152,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-19T05:22:29.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatrickJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-07T23:53:10.000Z","updated_at":"2020-01-06T20:28:23.000Z","dependencies_parsed_at":"2022-08-17T17:15:17.833Z","dependency_job_id":null,"html_url":"https://github.com/PatrickJS/traceur-compiler-loader","commit_stats":null,"previous_names":["gdi2290/traceur-compiler-loader"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Ftraceur-compiler-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Ftraceur-compiler-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Ftraceur-compiler-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Ftraceur-compiler-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickJS","download_url":"https://codeload.github.com/PatrickJS/traceur-compiler-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225247842,"owners_count":17444122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:00:42.766Z","updated_at":"2024-11-18T20:31:37.758Z","avatar_url":"https://github.com/PatrickJS.png","language":"JavaScript","readme":"# traceur-compiler-loader v1.0.6\nUp to date [Traceur](https://github.com/google/traceur-compiler) Compiler 0.0.8x loader for [Webpack](https://webpack.github.io/).\n\n## Before using\n\nYou should manually install \"imports-loader\" in your project\n\n`$ npm install imports-loader`\n\nBy default traceur-compiler-loader using 0.0.86 version of traceur, but you can manually install any version from 0.0.8x.\n\n*IMPORTANT*\n````\n  You should install traceur-compiler before traceur-compiler-loader\n  if you want use different version on compiler.\n````\n\nAdd `TRACEUR_RUNTIME` to `module.noParse` in `webpack.config.js`\n\n```javascript\nvar\n  TRACEUR_RUNTIME = require('traceur-compiler-loader').runtime;\n\nmodule.exports = {\n\n  //....\n\n  module: {\n    noParse: [\n      new RegExp(TRACEUR_RUNTIME)\n    ]\n  }\n\n  //...\n};\n```\n\n## Usage\n```javascript\n// Simple option (does not include Traceur runtime)\nrequire(\"traceur!./script-file\");\n\n// Include Traceur runtime automatically\nrequire(\"traceur?runtime!./script-file\");\n\n// Specify Traceur options\nrequire(\"traceur?experimental\u0026symbols!./script-file\");\n\n// All together now\nrequire(\"traceur?runtime\u0026symbols!./script-file\");\n```\n\n### Recommended configuration (do not process modules)\n```javascript\n{\n  module: {\n    loaders: [\n      {\n        test: /^(?!.*(bower_components|node_modules))+.+\\.js$/,\n        loader: 'traceur'\n      }\n    ],\n    noParse: [\n      new RegExp(TRACEUR_RUNTIME)\n    ]\n  }\n}\n\n// With parameters\n{\n  module: {\n    loaders: [\n      {\n        test: /^(?!.*(bower_components|node_modules))+.+\\.js$/,\n        loader: 'traceur?experimental\u0026runtime'\n      }\n    ],\n    noParse: [\n      new RegExp(TRACEUR_RUNTIME)\n    ]\n  }\n}\n```\n\n### Defaults\n```javascript\n{\n  // Modules set to CommonJS (consistent with Node.js and Webpack)\n  modules: 'commonjs',\n\n  // Source maps are built and fed to Webpack (use Webpack options)\n  sourceMaps: true,\n\n  // Traceur runtime by default not auto included\n  runtime: false\n}\n```\n\n### Runtime path\nAccess to the runtime path is available as a direct reference:\n`require('traceur-compiler-loader').runtime`.\n\nTo view all Traceur options, visit\n[here](https://github.com/google/traceur-compiler/blob/master/src/Options.js).\n","funding_links":[],"categories":["Webpack plugins"],"sub_categories":["Brunch Plugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPatrickJS%2Ftraceur-compiler-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPatrickJS%2Ftraceur-compiler-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPatrickJS%2Ftraceur-compiler-loader/lists"}