Skip to content

Commit

Permalink
Webpack compiles successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Cooper committed Nov 21, 2020
1 parent 41b9e7a commit 8c4e1d5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
11 changes: 0 additions & 11 deletions config/webpack/environment.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
const { environment } = require('@rails/webpacker')

const webpack = require('webpack');
// Preventing Babel from transpiling NodeModules packages
environment.loaders.delete('nodeModules');
// Bootstrap 4 has a dependency over jQuery & Popper.js:
environment.plugins.prepend('Provide',
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
Popper: ['popper.js', 'default']
})
);
module.exports = environment
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"sortablejs": "^1.12.0",
"stimulus": "^1.1.1",
"turbolinks": "^5.2.0",
"webpack": "^4.0.0"
"webpack": "^4.32.0"
},
"version": "0.1.0",
"devDependencies": {
"babel-loader": "^8.2.1",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.11.0"
}
}
17 changes: 14 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,17 @@ babel-loader@^8.0.6:
pify "^4.0.1"
schema-utils "^2.6.5"

babel-loader@^8.2.1:
version "8.2.1"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.1.tgz#e53313254677e86f27536f5071d807e01d24ec00"
integrity sha512-dMF8sb2KQ8kJl21GUjkW1HWmcsL39GOV5vnzjqrCzEPNY0S0UfMLnumidiwIajDSBmKhYf5iRW+HXaM4cvCKBw==
dependencies:
find-cache-dir "^2.1.0"
loader-utils "^1.4.0"
make-dir "^2.1.0"
pify "^4.0.1"
schema-utils "^2.6.5"

babel-plugin-dynamic-import-node@^2.3.0, babel-plugin-dynamic-import-node@^2.3.3:
version "2.3.3"
resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3"
Expand Down Expand Up @@ -4242,7 +4253,7 @@ lru-cache@^5.1.1:
dependencies:
yallist "^3.0.2"

make-dir@^2.0.0:
make-dir@^2.0.0, make-dir@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5"
integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==
Expand Down Expand Up @@ -7330,7 +7341,7 @@ webpack-assets-manifest@^3.1.1:
tapable "^1.0.0"
webpack-sources "^1.0.0"

webpack-cli@^3.3.10:
webpack-cli@^3.3.10, webpack-cli@^3.3.2:
version "3.3.12"
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.12.tgz#94e9ada081453cd0aa609c99e500012fd3ad2d4a"
integrity sha512-NVWBaz9k839ZH/sinurM+HcDvJOTXwSjYp1ku+5XKeOC03z8v5QitnK/x+lAxGXFyhdayoIf/GOpv85z3/xPag==
Expand Down Expand Up @@ -7413,7 +7424,7 @@ webpack-sources@^1.0.0, webpack-sources@^1.0.1, webpack-sources@^1.1.0, webpack-
source-list-map "^2.0.0"
source-map "~0.6.1"

webpack@^4.0.0:
webpack@^4.32.0:
version "4.44.2"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.44.2.tgz#6bfe2b0af055c8b2d1e90ed2cd9363f841266b72"
integrity sha512-6KJVGlCxYdISyurpQ0IPTklv+DULv05rs2hseIXer6D7KrUicRDLFb4IUM1S6LUAKypPM/nSiVSuv8jHu1m3/Q==
Expand Down

0 comments on commit 8c4e1d5

Please sign in to comment.