Webpack: build script with eval function need to be regenerated

Created on 11 June 2024, 13 days ago

Problem/Motivation

Token Filter javascript builded with webpack generate eval function.
Using Strict Security Policy to avoid unsafe-eval policy with generate errors cf image.

Steps to reproduce

1. Install and enable Token_filter module
2. Enable CSP and avoid unsafe-eval
3. Login as admin and load any page

Proposed resolution

According to this documentation : https://webpack.js.org/configuration/devtool/#production
The webpack.config.js is good (devtool is omitted)
But the build tokenBrowser.js have eval function !
When the tokenBrowser is generated with same configuration the eval function disappear.

πŸ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡«πŸ‡·France sdjili

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024