File tree Expand file tree Collapse file tree 6 files changed +33
-23
lines changed
fixtures/base-context-move Expand file tree Collapse file tree 6 files changed +33
-23
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
- node_js :
3
- - " 7"
4
- - " 4"
5
2
6
- env :
7
- matrix :
8
- - WEBPACK_VERSION=1 EXTRACT_TEXT_VERSION=1
9
- - WEBPACK_VERSION=2 EXTRACT_TEXT_VERSION=2
10
3
matrix :
11
4
fast_finish : true
12
- allow_failures :
13
- - node_js : " 4"
14
- env : WEBPACK_VERSION=2 EXTRACT_TEXT_VERSION=2
5
+ include :
6
+ - node_js : 7
7
+ env : WEBPACK_VERSION=1 EXTRACT_TEXT_VERSION=1 BABEL_LOADER=6 FILE_LOADER=0.10
8
+ - node_js : 7
9
+ env : WEBPACK_VERSION=2 EXTRACT_TEXT_VERSION=2 BABEL_LOADER=7 FILE_LOADER=0.11
10
+ - node_js : 4
11
+ env : WEBPACK_VERSION=1 EXTRACT_TEXT_VERSION=1 BABEL_LOADER=6 FILE_LOADER=0.10
12
+
15
13
before_script :
16
- - npm rm webpack extract-text-webpack-plugin
17
- - npm install webpack@$WEBPACK_VERSION extract-text-webpack-plugin@$EXTRACT_TEXT_VERSION
14
+ - npm install webpack@$WEBPACK_VERSION extract-text-webpack-plugin@$EXTRACT_TEXT_VERSION file-loader@$FILE_LOADER
18
15
cache :
19
16
directories :
20
17
- node_modules
Original file line number Diff line number Diff line change @@ -4,20 +4,26 @@ environment:
4
4
- nodejs_version : " 4"
5
5
webpack_version : " 1"
6
6
extract_text_version : " 1"
7
+ babel_loader_version : " 6"
8
+ file_loader_version : " 0.10"
7
9
- nodejs_version : " 6"
8
10
webpack_version : " 2"
9
11
extract_text_version : " 2"
12
+ babel_loader_version : " 7"
13
+ file_loader_version : " 0.11"
10
14
- nodejs_version : " 7"
11
15
webpack_version : " 2"
12
16
extract_text_version : " 2"
17
+ babel_loader_version : " 7"
18
+ file_loader_version : " 0.10"
13
19
14
20
# Install scripts. (runs after repo cloning)
15
21
install :
16
22
# Get the latest stable version of Node.js or io.js
17
23
- ps : Install-Product node $env:nodejs_version
18
24
# install modules
19
25
- npm install
20
- - npm install webpack@%webpack_version% extract-text-webpack-plugin@%extract_text_version%
26
+ - npm install webpack@%webpack_version% extract-text-webpack-plugin@%extract_text_version% babel-loader@%babel_loader_version% file-loader@%file_loader_version%
21
27
22
28
# Post-install test scripts.
23
29
test_script :
Original file line number Diff line number Diff line change @@ -10,7 +10,14 @@ var fromStringWithSourceMap = require('source-list-map').fromStringWithSourceMap
10
10
module . exports = HardSource ;
11
11
12
12
function HardSource ( cacheItem ) {
13
- RawSource . call ( this , cacheItem . source ) ;
13
+ Object . setPrototypeOf ( this ,
14
+ Object . setPrototypeOf (
15
+ new RawSource ( cacheItem . source ) ,
16
+ HardSource . prototype
17
+ )
18
+ ) ;
19
+
20
+ // RawSource.call(this, cacheItem.source);
14
21
this . cacheItem = cacheItem ;
15
22
}
16
23
HardSource . prototype = Object . create ( RawSource . prototype ) ;
Original file line number Diff line number Diff line change 25
25
"license" : " ISC" ,
26
26
"devDependencies" : {
27
27
"chai" : " ^3.5.0" ,
28
- "css-loader" : " ^0.26.1 " ,
29
- "extract-text-webpack-plugin" : " ^1.0.1" ,
30
- "file-loader" : " ^0.10.1" ,
28
+ "css-loader" : " ^0.27.0 " ,
29
+ "extract-text-webpack-plugin" : " ^2.0.0 || ^ 1.0.1" ,
30
+ "file-loader" : " ^0.11.0 || ^0. 10.1" ,
31
31
"html-webpack-plugin" : " ^2.22.0" ,
32
32
"memory-fs" : " ^0.4.1" ,
33
33
"mocha" : " ^3.0.2" ,
34
34
"rimraf" : " ^2.5.4" ,
35
- "style-loader" : " ^0.13.1 " ,
36
- "webpack" : " ^1.13.1" ,
35
+ "style-loader" : " ^0.14.0 " ,
36
+ "webpack" : " ^3.0.0 || ^3.0.0-rc.0 || ^2.1.0 || ^ 1.13.1" ,
37
37
"webpack-isomorphic-tools" : " ^3.0.0"
38
38
},
39
39
"peerDependencies" : {
40
- "webpack" : " >=1.13.1 || ^2.1.0-beta || ^2.2.0-rc || ^2.2.0 "
40
+ "webpack" : " * "
41
41
},
42
42
"dependencies" : {
43
43
"bluebird" : " ^3.0.0" ,
48
48
"source-list-map" : " ^0.1.6" ,
49
49
"source-map" : " ^0.5.6" ,
50
50
"webpack-core" : " ~0.6.0" ,
51
- "webpack-sources" : " ^0.1.2 "
51
+ "webpack-sources" : " ^1. 0.1"
52
52
}
53
53
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var ifWebpack1 = function(obj) {
7
7
} ;
8
8
9
9
var ifWebpack2 = function ( obj ) {
10
- if ( require ( 'webpack/package.json' ) . version [ 0 ] === '2 ') {
10
+ if ( require ( 'webpack/package.json' ) . version [ 0 ] !== '1 ') {
11
11
return obj ;
12
12
}
13
13
} ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ exports.webpack1 = function(obj, elseObj) {
8
8
} ;
9
9
10
10
exports . webpack2 = function ( obj , elseObj ) {
11
- if ( require ( 'webpack/package.json' ) . version [ 0 ] === '2 ') {
11
+ if ( require ( 'webpack/package.json' ) . version [ 0 ] !== '1 ') {
12
12
return obj ;
13
13
}
14
14
else {
You can’t perform that action at this time.
0 commit comments