Skip to content
Snippets Groups Projects
Commit 834ead4f authored by Rysev, Gleb (UG - SISC)'s avatar Rysev, Gleb (UG - SISC)
Browse files

Webpack binstubs

parent a5481f09
Branches Deployment
No related tags found
No related merge requests found
......@@ -22,10 +22,8 @@ module.exports = function(api) {
{
targets: {
node: 'current'
},
modules: 'commonjs'
},
'@babel/preset-react'
}
}
],
(isProductionEnv || isDevelopmentEnv) && [
'@babel/preset-env',
......@@ -36,13 +34,6 @@ module.exports = function(api) {
modules: false,
exclude: ['transform-typeof-symbol']
}
],
[
'@babel/preset-react',
{
development: isDevelopmentEnv || isTestEnv,
useBuiltIns: true
}
]
].filter(Boolean),
plugins: [
......@@ -65,9 +56,7 @@ module.exports = function(api) {
[
'@babel/plugin-transform-runtime',
{
helpers: false,
regenerator: true,
corejs: false
helpers: false
}
],
[
......@@ -75,12 +64,6 @@ module.exports = function(api) {
{
async: false
}
],
isProductionEnv && [
'babel-plugin-transform-react-remove-prop-types',
{
removeImport: true
}
]
].filter(Boolean)
}
......
#!/usr/bin/env ruby
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"] ||= "development"
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
require "bundler/setup"
require "webpacker"
require "webpacker/webpack_runner"
APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
Webpacker::WebpackRunner.run(ARGV)
end
#!/usr/bin/env ruby
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"] ||= "development"
require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
require "bundler/setup"
require "webpacker"
require "webpacker/dev_server_runner"
APP_ROOT = File.expand_path("..", __dir__)
Dir.chdir(APP_ROOT) do
Webpacker::DevServerRunner.run(ARGV)
end
......@@ -33,7 +33,6 @@ default: &default
- .woff2
extensions:
- .jsx
- .mjs
- .js
- .sass
......
......@@ -2,12 +2,13 @@
"name": "Group10HabitTracker",
"private": true,
"dependencies": {
"webpack": "^4.4.0",
"@babel/preset-react": "^7.12.13",
"@rails/webpacker": "5.2.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"webpack": "^4.4.0",
"webpack-dev-server": "^3.11.2"
},
"devDependencies": {
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment