Skip to content

Commit

Permalink
* Fixed "Critical dependency: the request of a dependency is an expre…
Browse files Browse the repository at this point in the history
…ssion" in webpack (issue#70)

* bump devDependencies
  • Loading branch information
mnater committed Jul 24, 2019
1 parent 3395d25 commit 1c7f980
Show file tree
Hide file tree
Showing 11 changed files with 631 additions and 2,472 deletions.
3 changes: 0 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"browser": true,
"es6": true
},
"globals": {
"Hyphenopoly": "readable"
},
"plugins": [
"security"
],
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Version History

## Version 3.1.2 (2019-07-24)
### Fixed
* Fixed "Critical dependency: the request of a dependency is an expression" in webpack (issue#70)
* bump devDependencies

## Version 3.1.1 (2019-06-28)
### Fixed
* bump devDependencies
Expand Down
4 changes: 2 additions & 2 deletions Hyphenopoly.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* @license Hyphenopoly 3.1.1 - client side hyphenation for webbrowsers
* @license Hyphenopoly 3.1.2 - client side hyphenation for webbrowsers
* ©2019 Mathias Nater, Zürich (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
* Released under the MIT license
* http://mnater.github.io/Hyphenopoly/LICENSE
*/

/* globals asmHyphenEngine */
/* globals asmHyphenEngine:readonly, Hyphenopoly:readonly */

(function mainWrapper(w) {
"use strict";
Expand Down
4 changes: 3 additions & 1 deletion Hyphenopoly_Loader.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/**
* @license Hyphenopoly_Loader 3.1.1 - client side hyphenation
* @license Hyphenopoly_Loader 3.1.2 - client side hyphenation
* ©2019 Mathias Nater, Zürich (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
* Released under the MIT license
* http://mnater.github.io/Hyphenopoly/LICENSE
*/

/* globals Hyphenopoly:readonly */

/**
* Wrap all code in an iife to keep a scope. Important objects are parameters
* of this iife to keep codesize low.
Expand Down
2 changes: 1 addition & 1 deletion hyphenEngine.asm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license hyphenEngine.asm.js 3.1.1 - client side hyphenation for webbrowsers
* @license hyphenEngine.asm.js 3.1.2 - client side hyphenation for webbrowsers
* ©2019 Mathias Nater, Zürich (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down
13 changes: 8 additions & 5 deletions hyphenopoly.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Hyphenopoly.module.js 3.1.1 - hyphenation for node
* @license Hyphenopoly.module.js 3.1.2 - hyphenation for node
* ©2018 Mathias Nater, Zürich (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down Expand Up @@ -818,10 +818,13 @@ H.config = function config(userConfig) {
);
});
H.c = settings;
if (H.c.loader === "https" || H.c.loader === "http") {
/* eslint-disable global-require, security/detect-non-literal-require */
loader = require(H.c.loader);
/* eslint-enable global-require, security/detect-non-literal-require */
if (H.c.loader === "https") {
// eslint-disable-next-line global-require
loader = require("https");
}
if (H.c.loader === "http") {
// eslint-disable-next-line global-require
loader = require("http");
}
if (H.c.handleEvent) {
Object.keys(H.c.handleEvent).forEach(function add(name) {
Expand Down
Loading

0 comments on commit 1c7f980

Please sign in to comment.