Skip to content

Commit

Permalink
Fixed jQuery module loading to prevent webpack from requiring jQuery …
Browse files Browse the repository at this point in the history
…during build
  • Loading branch information
kasparsz committed Aug 7, 2017
1 parent 0a5cd4b commit 5d570bc
Show file tree
Hide file tree
Showing 6 changed files with 753 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.0] - 2017-08-07
### Changed
- Fixed jQuery module loading to prevent webpack from requiring jQuery during build

## [0.4.0] - 2016-09-01
### Changed
- Implemented proper jQuery loading/factory method
Expand All @@ -13,5 +17,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- ```debug``` configuration option [\#1](https://github.com/kasparsz/jquery-app/issues/1)


[0.4.0]: https://github.com/kasparsz/jquery-app/compare/v0.4.0...v1.0.0
[0.4.0]: https://github.com/kasparsz/jquery-app/compare/v0.3.1...v0.4.0
[0.3.1]: https://github.com/kasparsz/jquery-app/compare/v0.2.2...v0.3.1
8 changes: 4 additions & 4 deletions dist/jquery-app.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*!
* jquery-app <https://github.com/kasparsz/jquery-app>
*
* Copyright (c) 2016, Kaspars Zuks.
* Copyright (c) 2016-2017, Kaspars Zuks.
* Licensed under the MIT License.
*/

(function (factory) {
if (typeof define === 'function' && define.amd) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports === 'object') {
factory(require('jquery'));
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('jquery'));
} else {
factory(jQuery);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery-app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery-app",
"description": "Declarative jQuery plugin initialization on DOM elements",
"version": "0.4.0",
"version": "1.0.0",
"homepage": "https://github.com/kasparsz/jquery-app",
"repository": "kasparsz/jquery-app",
"bugs": {
Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*!
* jquery-app <https://github.com/kasparsz/jquery-app>
*
* Copyright (c) 2016, Kaspars Zuks.
* Copyright (c) 2016-2017, Kaspars Zuks.
* Licensed under the MIT License.
*/

(function (factory) {
if (typeof define === 'function' && define.amd) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports === 'object') {
factory(require('jquery'));
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('jquery'));
} else {
factory(jQuery);
}
Expand Down
Loading

0 comments on commit 5d570bc

Please sign in to comment.