Skip to content

Commit 8daf25d

Browse files
committed
ENYO-4653: Abnormal behaviour with 'serve'.
Use a local fork of extract-text-webpack plugin with a webpack 3.x compatibility patch applied until webpack-contrib/extract-text-webpack-plugin#579 is fixed upstream.
1 parent f340524 commit 8daf25d

File tree

137 files changed

+1879
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+1879
-40
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
extract-text-webpack-plugin
2+
node_modules
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
indent_style = tab
12+
indent_size = 4
13+
14+
# Matches the exact files either package.json or .travis.yml
15+
[{package.json,.travis.yml}]
16+
indent_style = space
17+
indent_size = 2

extract-text-webpack-plugin/.eslintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"env": {
3+
"node": true
4+
},
5+
"rules": {
6+
"strict": 0,
7+
"curly": 0,
8+
"quotes": 0,
9+
"no-shadow": 0,
10+
"no-underscore-dangle": 0
11+
}
12+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1. Check the version of package you are using. If it's not the newest version, update and try again (see changelog while updating!).
2+
2. If the issue is still there, write a minimal project showing the problem and expected output.
3+
3. Link to the project and mention Node version and OS in your report.
4+
5+
**IMPORTANT! You should use [Stack Overflow](https://stackoverflow.com/) for support related questions.**
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1. [Read and sign the CLA](https://cla.js.foundation/webpack/webpack.js.org). This needs to be done only once. PRs that haven't signed it won't be accepted.
2+
2. Check out the [development guide](https://webpack.js.org/development/) for the API and development guidelines.
3+
3. Read through the PR diff carefully as sometimes this can reveal issues. The work will be reviewed, but this can save some effort.
4+
4. Remove these instructions from your PR as they are for your eyes only.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/node_modules
2+
3+
/example/assets
4+
5+
/test/js
6+
/coverage
7+
8+
/.idea
9+
10+
.DS_Store
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- node
5+
- 6
6+
- 4
7+
script: npm run travis
8+
9+
after_success:
10+
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
11+
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js
12+
- rm -rf ./coverage
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
<a name="2.1.2"></a>
6+
## [2.1.2](https://github.com/webpack-contrib/extract-text-webpack-plugin/compare/v2.1.1...v2.1.2) (2017-06-08)
7+
8+
9+
10+
<a name="2.1.1"></a>
11+
## [2.1.1](https://github.com/webpack-contrib/extract-text-webpack-plugin/compare/v2.1.0...v2.1.1) (2017-06-08)
12+
13+
14+
### Bug Fixes
15+
16+
* add a not null check for the content property before throwing error ([#404](https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/404)) ([58dd5d3](https://github.com/webpack-contrib/extract-text-webpack-plugin/commit/58dd5d3))
17+
* **loader:** rm unnecessary `this.cacheable` (caching) ([#530](https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/530)) ([c3cb091](https://github.com/webpack-contrib/extract-text-webpack-plugin/commit/c3cb091))
18+
* don't extract from common async chunks ([#508](https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/508)) ([e595417](https://github.com/webpack-contrib/extract-text-webpack-plugin/commit/e595417))
19+
* validation schema (`schema-utils`) ([#527](https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/527)) ([dfeb347](https://github.com/webpack-contrib/extract-text-webpack-plugin/commit/dfeb347))
20+
21+
22+
23+
<a name="2.1.0"></a>
24+
# [2.1.0](https://github.com/webpack/extract-text-webpack-plugin/compare/v2.0.0...v2.1.0) (2017-03-05)
25+
26+
### Features
27+
28+
* The plugin **filename** accepts a function now. [c9a19ad](https://github.com/webpack-contrib/extract-text-webpack-plugin/commit/c9a19ad), closes [#423](https://github.com/webpack-contrib/extract-text-webpack-plugin/pull/423)
29+
30+
<a name="2.0.0"></a>
31+
# [2.0.0](https://github.com/webpack/extract-text-webpack-plugin/compare/v2.0.0-rc.3...v2.0.0) (2017-02-24)
32+
33+
<a name="2.0.0-rc.2"></a>
34+
# [2.0.0-rc.2](https://github.com/webpack/extract-text-webpack-plugin/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2017-01-28)
35+
36+
37+
### Bug Fixes
38+
39+
* **schema:** allow `extract` to accept omit/remove flags ([8ce93d5](https://github.com/webpack/extract-text-webpack-plugin/commit/8ce93d5)), closes [#371](https://github.com/webpack/extract-text-webpack-plugin/issues/371)
40+
* **schema:** connect loader schema with the code properly ([03bb4aa](https://github.com/webpack/extract-text-webpack-plugin/commit/03bb4aa))
41+
* **schema:** emit proper error messages ([70cbd4b](https://github.com/webpack/extract-text-webpack-plugin/commit/70cbd4b))
42+
43+
44+
### Features
45+
46+
* **errors:** show nicer errors if there are extra fields ([76a171d](https://github.com/webpack/extract-text-webpack-plugin/commit/76a171d))
47+
48+
49+
50+
<a name="2.0.0-rc.1"></a>
51+
# [2.0.0-rc.1](https://github.com/webpack/extract-text-webpack-plugin/compare/v2.0.0-rc.0...v2.0.0-rc.1) (2017-01-28)
52+
53+
54+
### Bug Fixes
55+
56+
* **options:** pass proper loader options to children ([#266](https://github.com/webpack/extract-text-webpack-plugin/issues/266)) ([6abf42d](https://github.com/webpack/extract-text-webpack-plugin/commit/6abf42d))
57+
58+
59+
60+
<a name="2.0.0-rc.0"></a>
61+
# [2.0.0-rc.0](https://github.com/webpack/extract-text-webpack-plugin/compare/v2.0.0-beta.5...v2.0.0-rc.0) (2017-01-26)
62+
63+
64+
### Bug Fixes
65+
66+
* **readme:** Incorrect loader configuration ([e477cc7](https://github.com/webpack/extract-text-webpack-plugin/commit/e477cc7))
67+
68+
69+
### Features
70+
71+
* **extract:** return an array of loader objects ([#343](https://github.com/webpack/extract-text-webpack-plugin/issues/343)) ([74b86e0](https://github.com/webpack/extract-text-webpack-plugin/commit/74b86e0))
72+
73+
74+
75+
# Change Log
76+
77+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
MIT License http://www.opensource.org/licenses/mit-license.php
3+
Author Tobias Koppers @sokra
4+
*/
5+
var SourceMapSource = require("webpack-sources").SourceMapSource;
6+
var RawSource = require("webpack-sources").RawSource;
7+
8+
function ExtractedModule(identifier, originalModule, source, sourceMap, addtitionalInformation, prevModules) {
9+
this._identifier = identifier;
10+
this._originalModule = originalModule;
11+
this._source = source;
12+
this._sourceMap = sourceMap;
13+
this._prevModules = prevModules;
14+
this.addtitionalInformation = addtitionalInformation;
15+
this.chunks = [];
16+
}
17+
module.exports = ExtractedModule;
18+
19+
ExtractedModule.prototype.getOrder = function() {
20+
// http://stackoverflow.com/a/14676665/1458162
21+
return /^@import url/.test(this._source) ? 0 : 1;
22+
};
23+
24+
ExtractedModule.prototype.addChunk = function(chunk) {
25+
var idx = this.chunks.indexOf(chunk);
26+
if(idx < 0)
27+
this.chunks.push(chunk);
28+
};
29+
30+
ExtractedModule.prototype.removeChunk = function(chunk) {
31+
var idx = this.chunks.indexOf(chunk);
32+
if(idx >= 0) {
33+
this.chunks.splice(idx, 1);
34+
chunk.removeModule(this);
35+
return true;
36+
}
37+
return false;
38+
};
39+
40+
ExtractedModule.prototype.rewriteChunkInReasons = function(oldChunk, newChunks) { };
41+
42+
ExtractedModule.prototype.identifier = function() {
43+
return this._identifier;
44+
};
45+
46+
ExtractedModule.prototype.source = function() {
47+
if(this._sourceMap)
48+
return new SourceMapSource(this._source, null, this._sourceMap);
49+
else
50+
return new RawSource(this._source);
51+
};
52+
53+
ExtractedModule.prototype.getOriginalModule = function() {
54+
return this._originalModule;
55+
};
56+
57+
ExtractedModule.prototype.getPrevModules = function() {
58+
return this._prevModules;
59+
};
60+
61+
ExtractedModule.prototype.addPrevModules = function(prevModules) {
62+
prevModules.forEach(function(m) {
63+
if(this._prevModules.indexOf(m) < 0)
64+
this._prevModules.push(m);
65+
}, this);
66+
};
67+
68+
ExtractedModule.prototype.setOriginalModule = function(originalModule) {
69+
this._originalModule = originalModule;
70+
};

extract-text-webpack-plugin/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright JS Foundation and other contributors
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
'Software'), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
MIT License http://www.opensource.org/licenses/mit-license.php
3+
Author Tobias Koppers @sokra
4+
*/
5+
function OrderUndefinedError(module) {
6+
Error.call(this);
7+
Error.captureStackTrace(this, OrderUndefinedError);
8+
this.name = "OrderUndefinedError";
9+
this.message = "Order in extracted chunk undefined";
10+
this.module = module;
11+
}
12+
module.exports = OrderUndefinedError;
13+
14+
OrderUndefinedError.prototype = Object.create(Error.prototype);

0 commit comments

Comments
 (0)