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

The jquery.factory.js bundle is missing in the npm package in the 4.0.0-beta release #5411

Closed
Assignees
timmywil
Milestone
@gdsw

Description

@gdsw

Congratulations on the release, the changes look good!

Description

According to thenpm package description, in order to use jQuery with JSDOM, you can now use a Factory:

const{JSDOM}=require("jsdom");const{ window}=newJSDOM("");const{ jQueryFactory}=require("jquery/factory");const$=jQueryFactory(window);

When the library is installed through npm:

npm install jquery@4.0.0-beta

The following files are available:

image

According to thepackage.json, there should be a factory in thedist anddist-module folders:

image

Link to test case

This is an issue with the bundle itself, rather than some particular jQuery functionality, but the test is rather simple:

  1. Install the package via NPM.
  2. Create a simpletest.js file with the following contents:
const { JSDOM } = require("jsdom");const { window } = new JSDOM();const { jQueryFactory } = require("jquery/factory");const $ = jQuery = jQueryFactory( window );console.log("success");
  1. And run it:
    node test.js

image

I am guessing that the following array is the culprit:

https://github.com/jquery/jquery/blob/main/build/release/dist.js#L15

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp