{"id":15130422,"url":"https://github.com/innerjoin/dojo-module-wrapper-webpack-plugin","last_synced_at":"2025-09-28T19:32:27.221Z","repository":{"id":57214528,"uuid":"85000365","full_name":"innerjoin/dojo-module-wrapper-webpack-plugin","owner":"innerjoin","description":"[Deprecated] - Convert webpack's AMD output into a valid Dojo Module, invokable by a 'executeBundle()' method","archived":true,"fork":false,"pushed_at":"2018-11-17T19:02:54.000Z","size":13,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-16T12:46:57.025Z","etag":null,"topics":["amd-modules","dojo","webpack-plugin","webpack2"],"latest_commit_sha":null,"homepage":"","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/innerjoin.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":"2017-03-14T21:46:36.000Z","updated_at":"2023-01-28T19:39:40.000Z","dependencies_parsed_at":"2022-08-26T13:41:33.110Z","dependency_job_id":null,"html_url":"https://github.com/innerjoin/dojo-module-wrapper-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innerjoin%2Fdojo-module-wrapper-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innerjoin%2Fdojo-module-wrapper-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innerjoin%2Fdojo-module-wrapper-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innerjoin%2Fdojo-module-wrapper-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innerjoin","download_url":"https://codeload.github.com/innerjoin/dojo-module-wrapper-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234556059,"owners_count":18851896,"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":["amd-modules","dojo","webpack-plugin","webpack2"],"created_at":"2024-09-26T02:47:08.911Z","updated_at":"2025-09-28T19:32:21.973Z","avatar_url":"https://github.com/innerjoin.png","language":"JavaScript","readme":"# Deprecated - Do not use this project anymore!\n\nThis package has been deprecated as it considered bad practice to do it like this. Use [dojo/request/script](https://dojotoolkit.org/reference-guide/1.10/dojo/request/script.html) instead!\n\nExample:\n\n```javascript\ndefine([\n   \"dojo/_base/declare\",\n   \"dijit/_WidgetBase\",\n   \"dijit/_TemplatedMixin\",\n   \"dojo/text!com.mymodule/jazz/MyWidget.html\",\n   \"dojo/request/script\"\n], function(declare, _WidgetBase, _TemplatedMixin, template, script) {\n   return declare(\"com.mymodule.jazz.MyWidget\", [_WidgetBase, _TemplatedMixin], {\n\n      templateString: template,\n\n      startup: function() {\n         script.get(net.jazz.ajax._contextRoot + \"/web/com.mymodule/ui/MyBundle.js\");\n   });\n});\n```\n\nA reference implementation can be found [here](https://github.com/jazz-community/rtc-workitem-bulk-mover-ui)\n\n\n\n\n\n\n\n________________________________________________________________________________________\n\n\n\n\n\n\n\n\n[![npm-v-svg][npm-v-svg]][npm-url]\n[![npm-dt-svg][npm-dt-svg]][npm-url]\n[![issues-svg][issues-svg]][issues-url]\n\n# Wrap webpack code to run within a Dojo powered Web App\nIn many enterprise and even open source projects, you will likely stumble across an exising application which is based on the [Dojo Toolkit](http://dojotoolkit.org/). While (at the time of writing) the whole Web Development world is talking about Angular, React, Webpack, Babel and all those modern web development tools, framworks and platforms, many developers are confronted with extending mature tools using older (and sometimes) not up-to-date libraries. \nThis plug-in aims to help developers to integrate today's web technologies into mature Dojo based applications, which will allow to modernize your application step-by-step.\n\n## Installation\nThe plug-in is being published through `npm`, so running the following installation command is sufficient to get started using this plug-in\n`npm install --save-dev dojo-module-wrapper-webpack-plugin`\n\n## Usage\nThis plug-in requires a valid webpack configuration. It should contain the following information:\n```javascript\nconst DojoModuleWrapperPlugin = require('dojo-module-wrapper-webpack-plugin');\n\nmodule.exports = {\n    entry: {\n        app: '\u003centry point of main JS class\u003e',\n    },\n    output: {\n        libraryTarget: 'amd',\n        filename: '\u003cbundle destination\u003e',\n    },\n    module: {\n        // module transformations\n    },\n\n    plugins: [\n        new DojoModuleWrapperPlugin({\n            app: {\n                baseUrl: '\u003cthe base URL your app-bundle is running\u003e'\n                moduleName: '\u003cthe full name of your bundle\u003e'\n            },\n        }),\n    ],\n\n    externals: [\n        // exclude dojo, dijit and dojox from bundling\n        (context, request, callback) =\u003e {\n            if (/^dojo/.test(request) ||\n                /^dojox/.test(request) ||\n                /^dijit/.test(request)\n            ) {\n                return callback(null, `amd ${request}`);\n            }\n            callback();\n        },\n    ],\n};\n```\n\n## Projects using this plug-in\nStay tuned, the first project using this plug-in will be open-sourced in the nearer future. If you have a project which is using this plug-in successfully, feel free to contribute to this section through a pull request.\n\n## Contributing\nPlease use the [Issue Tracker](https://github.com/innerjoin/dojo-module-wrapper-webpack-plugin/issues) of this repository to report issues or suggest enhancements. \n\nPull requests are very welcome.\n\n## Licensing\nCopyright (c) Lukas Steiger. All rights reserved.\n\nLicensed under the [MIT](https://github.com/innerjoin/dojo-module-wrapper-webpack-plugin/blob/master/LICENSE) License.\n\n[npm-dt-svg]: https://img.shields.io/npm/dt/dojo-module-wrapper-webpack-plugin.svg\n[npm-v-svg]: https://img.shields.io/npm/v/dojo-module-wrapper-webpack-plugin.svg\n[npm-url]: https://www.npmjs.com/package/dojo-module-wrapper-webpack-plugin\n[issues-svg]: https://img.shields.io/github/issues/innerjoin/dojo-module-wrapper-webpack-plugin.svg\n[issues-url]: https://github.com/innerjoin/dojo-module-wrapper-webpack-plugin/issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnerjoin%2Fdojo-module-wrapper-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnerjoin%2Fdojo-module-wrapper-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnerjoin%2Fdojo-module-wrapper-webpack-plugin/lists"}