Skip to content

Commit 7b1b5ad

Browse files
committed
Tweaking configs and requires to sensible version
1 parent b6dc2aa commit 7b1b5ad

File tree

5 files changed

+830
-25
lines changed

5 files changed

+830
-25
lines changed

test/dummy_webpacker2/.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"uglify": true
88
},
99
"useBuiltIns": true
10-
}]
10+
}],
11+
"react"
1112
],
1213

1314
"plugins": [
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
module.exports = {
22
test: /\.js(\.erb)?$/,
33
exclude: /node_modules/,
4-
loader: 'babel-loader'
4+
loader: 'babel-loader',
5+
options: {
6+
presets: [
7+
['env', { modules: false }]
8+
]
9+
}
510
}

test/dummy_webpacker2/config/webpacker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ development:
3232
test:
3333
<<: *default
3434

35-
public_output_path: packs-test
35+
# public_output_path: packs-test
3636

3737
production:
3838
<<: *default

test/dummy_webpacker2/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"babel-plugin-transform-class-properties": "^6.24.1",
88
"babel-polyfill": "^6.26.0",
99
"babel-preset-env": "^1.6.0",
10+
"babel-preset-react": "^6.24.1",
1011
"coffee-loader": "^0.8.0",
1112
"coffee-script": "^1.12.7",
1213
"compression-webpack-plugin": "^1.0.0",
1314
"css-loader": "^0.28.7",
14-
"extract-text-webpack-plugin": "^3.0.0",
15+
"extract-text-webpack-plugin": "2.x.x",
1516
"file-loader": "^0.11.2",
1617
"glob": "^7.1.2",
1718
"js-yaml": "^3.10.0",
@@ -20,12 +21,19 @@
2021
"postcss-loader": "^2.0.6",
2122
"postcss-smart-import": "^0.7.5",
2223
"precss": "^2.0.0",
24+
"prop-types": "^15.5.10",
2325
"rails-erb-loader": "^5.2.1",
26+
"react": "^15.6.1",
27+
"react-dom": "^15.6.1",
28+
"react_ujs": "^2.2.1",
2429
"resolve-url-loader": "^2.1.0",
2530
"sass-loader": "^6.0.6",
2631
"style-loader": "^0.18.2",
2732
"webpack": "2.x.x",
2833
"webpack-manifest-plugin": "^1.3.1",
2934
"webpack-merge": "^4.1.0"
35+
},
36+
"devDependencies": {
37+
"webpack-dev-server": "^2.7.1"
3038
}
3139
}

0 commit comments

Comments
 (0)