Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: avoid using eval in client#5045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
alexander-akait merged 1 commit intomasterfromissue-5044
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletionsclient-src/modules/logger/SyncBailHookFake.js
View file
Open in desktop

This file was deleted.

11 changes: 11 additions & 0 deletionsclient-src/modules/logger/tapable.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
function SyncBailHook() {
return {
call() {},
};
}

/**
* Client stub for tapable SyncBailHook
*/
// eslint-disable-next-line import/prefer-default-export
export { SyncBailHook };
22 changes: 9 additions & 13 deletionsclient-src/webpack.config.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,15 +4,12 @@ const path = require("path");
const webpack = require("webpack");
const { merge } = require("webpack-merge");

// @ts-ignore
const library = webpack.webpack
? {
library: {
// type: "module",
type: "commonjs",
},
}
: { libraryTarget: "umd" };
const library = {
library: {
// type: "module",
type: "commonjs",
},
};

const baseForModules = {
devtool: false,
Expand All@@ -28,8 +25,7 @@ const baseForModules = {
optimization: {
minimize: false,
},
// @ts-ignore
target: webpack.webpack ? ["web", "es5"] : "web",
target: ["web", "es5"],
module: {
rules: [
{
Expand DownExpand Up@@ -73,8 +69,8 @@ module.exports = [
'(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; })',
}),
new webpack.NormalModuleReplacementPlugin(
/^tapable\/lib\/SyncBailHook/,
path.join(__dirname, "modules/logger/SyncBailHookFake.js"),
/^tapable$/,
path.join(__dirname, "modules/logger/tapable.js"),
),
],
}),
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp