For questions please post on Stack Overflow and use the 'webpack' tag (http://stackoverflow.com/tags/webpack).
dependabot-preview[bot] on npm_and_yarn
chore(deps-dev): bump date-fns … (compare)
sokra on npm_and_yarn
chore(deps-dev): bump terser fr… update snapshot (compare)
sokra on npm_and_yarn
sokra on master
chore(deps): bump browserslist … Merge pull request #13114 from … (compare)
sokra on npm_and_yarn
sokra on master
chore(deps-dev): bump ts-loader… Merge pull request #13091 from … (compare)
_0xef14
So I didn't think that they used obfuscator. Do you think we can tell obfuscator to not convert anything like _0xef14
as browser sometime things that this is virus code.
a
, b
, c
, etc. What you shared could theoretically label itself a minifier as the lines sometimes are blurred.npm install
hi all, i'm getting a one time warning after upgrading some dependencies, not seeing any issues for it as its a warning, and the app is working fine, but wondering what this means?
[webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'lodash/package.json' in /Users/kelly/tock/admin/clowncar/node_modules/babel-plugin-lodash/lib for build dependencies doesn't lead to expected result '/Users/kelly/tock/admin/clowncar/node_modules/lodash/package.json', but to '/Users/kelly/tock/admin/clowncar/node_modules/babel-plugin-lodash/node_modules/lodash/package.json' instead. Resolving dependencies are ignored for this path.
I updated babel-loader with a minor bump, and webpack as well, and babel-core,
babel-core - 7.13.15
babel-loader - 8.2.2
webpack - 5.31.0
after I get this, stop, then start it, it is no longer shown, guessing because its cached.
I'm having a problem with webpack.DefinePlugin. It's not defining anything.
Webpack version: 5.31.2plugins: [
new webpack.DefinePlugin({ ASSET_PATH: "testtest" }),
...
]
Then in my webapp, I check to see if window.ASSET_PATH is defined. It's not. Any clue what's going on? Is DefinePlugin broken in webpack 5?
JSON.stringify
it like so: new webpack.DefinePlugin({ "window.ASSET_PATH": JSON.stringify("testtest") })
-- you may be mixing up the error with texttext
being a literal and DefinePlugin "not working"
Currently getting two webpack errors while trying to migrate from a CRA template:
ERROR in ./src/expo-menu-management.tsx 5:0-22
Module not found: Error: Can't resolve './App.module' in '/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src'
resolve './App.module' in '/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src'
using description file: /Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/package.json (relative path: ./src/App.module)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module.jsx doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module.wasm doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module.json doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module.ts doesn't exist
.tsx
Field 'browser' doesn't contain a valid alias configuration
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module.tsx doesn't exist
as directory
/Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/src/App.module doesn't exist
ERROR in ./node_modules/@olo/design-system-react/dist/main.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/@olo/design-system-react/dist/main.css)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
CssSyntaxError
(1:1) /Users/stephen.weiss/code/olo/expo-web-mono/ds-menu-management/node_modules/@olo/design-system-react/dist/main.css Unknown word
> 1 | import api from "!../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js";
| ^
2 | import content from "!!../../../css-loader/dist/cjs.js!../../../postcss-loader/dist/cjs.js!../../../sass-loader/dist/cjs.js!./main.css";
3 |
@ ./node_modules/@olo/design-system-react/dist/main.css 2:12-242 9:17-24 13:7-21 45:20-34 49:6-59:7 50:38-52 56:26-40 58:21-28 68:15-29 47:4-60:5
@ ./src/expo-menu-management.tsx 6:0-48
webpack 5.31.2 compiled with 2 errors in 8850 ms
No issues found.
Webpack Config is currently pretty simple
const { merge } = require('webpack-merge');
const singleSpaDefaults = require('webpack-config-single-spa-react-ts');
module.exports = (webpackConfigEnv, argv) => {
const defaultConfig = singleSpaDefaults({
orgName: 'expo',
projectName: 'menu-management',
webpackConfigEnv,
argv,
});
return merge(defaultConfig, {
// modify the webpack config however you'd like to by adding to this object
module: {
rules: [
{
test: /\.s?css$/i,
use: ['style-loader', 'css-loader', 'postcss-loader'],
},
],
},
});
};