Skip to content

Commit b7b468f

Browse files
committed
fixup! fixup! fixup! fixup! fixup! chore: min node version, dep updates and ts-loader in test matrix
1 parent e208025 commit b7b468f

File tree

2 files changed

+58
-56
lines changed

2 files changed

+58
-56
lines changed

test/integration/index.spec.js

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,26 @@ describe('[INTEGRATION] index', function() {
4343
? { happyPackMode: true, silent: true }
4444
: { transpileOnly: true, silent: true };
4545

46-
return webpack({
47-
...(webpackMajorVersion >= 4 ? { mode: 'development' } : {}),
48-
context: path.resolve(__dirname, './project'),
49-
entry: entryPoint,
50-
output: {
51-
path: path.resolve(__dirname, '../../tmp')
52-
},
53-
module: {
54-
rules: [
55-
{
56-
test: /\.tsx?$/,
57-
loader: 'ts-loader',
58-
options: tsLoaderOptions
59-
}
60-
]
61-
},
62-
plugins: [plugin]
63-
});
46+
return webpack(Object.assign(
47+
webpackMajorVersion >= 4 ? { mode: 'development' } : {},
48+
{
49+
context: path.resolve(__dirname, './project'),
50+
entry: entryPoint,
51+
output: {
52+
path: path.resolve(__dirname, '../../tmp')
53+
},
54+
module: {
55+
rules: [
56+
{
57+
test: /\.tsx?$/,
58+
loader: 'ts-loader',
59+
options: tsLoaderOptions
60+
}
61+
]
62+
},
63+
plugins: [plugin]
64+
}
65+
));
6466
}
6567

6668
/**

test/integration/vue.spec.js

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,45 +26,45 @@ describe('[INTEGRATION] vue', function() {
2626
Object.assign({}, options, { silent: true })
2727
);
2828

29-
compiler = webpack({
30-
...(webpackMajorVersion >= 4 ? { mode: 'development' } : {}),
31-
context: path.resolve(__dirname, './vue'),
32-
entry: './src/index.ts',
33-
output: {
34-
path: path.resolve(__dirname, '../../tmp')
35-
},
36-
resolve: {
37-
extensions: ['.ts', '.js', '.vue', '.json'],
38-
alias: {
39-
'@': path.resolve(__dirname, './vue/src')
40-
}
41-
},
42-
module: {
43-
rules: [
44-
{
45-
test: /\.vue$/,
46-
loader: 'vue-loader'
47-
},
48-
{
49-
test: /\.ts$/,
50-
loader: 'ts-loader',
51-
options: {
52-
appendTsSuffixTo: [/\.vue$/],
53-
transpileOnly: true,
54-
silent: true
55-
}
56-
},
57-
{
58-
test: /\.css$/,
59-
loader: 'css-loader'
29+
compiler = webpack(
30+
Object.assign(
31+
webpackMajorVersion >= 4 ? { mode: 'development' } : {},
32+
{
33+
context: path.resolve(__dirname, './vue'),
34+
entry: './src/index.ts',
35+
output: {
36+
path: path.resolve(__dirname, '../../tmp')
37+
},
38+
resolve: {
39+
extensions: ['.ts', '.js', '.vue', '.json'],
40+
alias: {
41+
'@': path.resolve(__dirname, './vue/src')
6042
}
61-
]
62-
},
63-
plugins: [
64-
...(webpackMajorVersion >= 4 ? [new VueLoaderPlugin()] : []),
65-
plugin
66-
]
67-
});
43+
},
44+
module: {
45+
rules: [
46+
{
47+
test: /\.vue$/,
48+
loader: 'vue-loader'
49+
},
50+
{
51+
test: /\.ts$/,
52+
loader: 'ts-loader',
53+
options: {
54+
appendTsSuffixTo: [/\.vue$/],
55+
transpileOnly: true,
56+
silent: true
57+
}
58+
},
59+
{
60+
test: /\.css$/,
61+
loader: 'css-loader'
62+
}
63+
]
64+
},
65+
plugins: webpackMajorVersion >= 4 ? [new VueLoaderPlugin(), plugin] : [plugin],
66+
}
67+
));
6868

6969
files = {
7070
'example.vue': path.resolve(compiler.context, 'src/example.vue'),

0 commit comments

Comments
 (0)