-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hi,
I'm trying to use webpack to create a bundle that includes eslint4b
to run in a WebWorker.
I have the following webpack.config.js
:
{
entry: path.resolve(__dirname, 'lib/rules/function-eslint/index.js'),
output: {
filename: 'nrlint-plugin-rules-function-eslint.js',
path: path.resolve(__dirname, 'resources'),
library: {
name: ['nrlint','rules'],
type: 'assign-properties'
}
},
resolve: {
fallback: {
"assert": path.resolve(__dirname, 'lib/rules/function-eslint/empty.js'),
"util": false,
"path": false
}
},
mode: 'production',
target: ['webworker']
}
When I run webpack, I get multiple errors of the sort:
Module not found: Error: Can't resolve '@eslint/eslintrc/conf/environments' in '/Users/nol/code/node-red/nrlint/node_modules/eslint4b/dist'
This happens for:
@eslint/eslintrc/conf/environments'
@eslint/eslintrc/lib/shared/config-ops
@eslint/eslintrc/lib/shared/config-validator
I have found I need to have the full eslint
installed as a dependency of my own module for the webpack to work. Is that expected?
Metadata
Metadata
Assignees
Labels
No labels