diff options
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/package.json b/package.json index 1322abdf2..c4aed69ec 100644 --- a/package.json +++ b/package.json @@ -7,33 +7,39 @@ "exports": { ".": { "node": { - "module": "./dist-module/jquery.module.js", "import": "./dist-module/jquery.node-module-wrapper.js", - "require": "./dist/jquery.js" + "default": "./dist/jquery.js" }, - "production": "./dist-module/jquery.module.min.js", - "development": "./dist-module/jquery.module.js", - "script": "./dist/jquery.min.js", - "default": "./dist-module/jquery.module.min.js" + "module": { + "import": "./dist-module/jquery.module.js", + "default": "./dist/jquery.bundler-require-wrapper.js" + }, + "import": "./dist-module/jquery.module.js", + "default": "./dist/jquery.js" }, "./slim": { "node": { - "module": "./dist-module/jquery.slim.module.js", "import": "./dist-module/jquery.node-module-wrapper.slim.js", - "require": "./dist/jquery.slim.js" + "default": "./dist/jquery.slim.js" + }, + "module": { + "import": "./dist-module/jquery.slim.module.js", + "default": "./dist/jquery.bundler-require-wrapper.slim.js" }, - "production": "./dist-module/jquery.slim.module.min.js", - "development": "./dist-module/jquery.slim.module.js", - "script": "./dist/jquery.slim.min.js", - "default": "./dist-module/jquery.slim.module.min.js" + "import": "./dist-module/jquery.slim.module.js", + "default": "./dist/jquery.slim.js" }, "./factory": { "node": "./dist/jquery.factory.js", - "default": "./dist-module/jquery.factory.module.js" + "module": "./dist-module/jquery.factory.module.js", + "import": "./dist-module/jquery.factory.module.js", + "default": "./dist/jquery.factory.js" }, "./factory-slim": { "node": "./dist/jquery.factory.slim.js", - "default": "./dist-module/jquery.factory.slim.module.js" + "module": "./dist-module/jquery.factory.slim.module.js", + "import": "./dist-module/jquery.factory.slim.module.js", + "default": "./dist/jquery.factory.slim.js" }, "./src/*.js": "./src/*.js" }, @@ -53,8 +59,9 @@ "pretest": "npm run qunit-fixture && npm run babel:tests && npm run npmcopy", "qunit-fixture": "node build/tasks/qunit-fixture.js", "start": "node -e \"require('./build/tasks/build.js').buildDefaultFiles({ watch: true })\"", + "test:bundlers": "npm run pretest && npm run build:all && node test/bundler_smoke_tests/run-jsdom-tests.js", "test:browser": "npm run pretest && npm run build:main && npm run test:unit -- -b chrome -b firefox -h", - "test:browserless": "npm run pretest && npm run build:all && node build/tasks/node_smoke_tests.js && node build/tasks/promises_aplus_tests.js && npm run test:unit -- -b jsdom -m basic", + "test:browserless": "npm run pretest && npm run build:all && node test/bundler_smoke_tests/run-jsdom-tests.js && node build/tasks/node_smoke_tests.js && node build/tasks/promises_aplus_tests.js && npm run test:unit -- -b jsdom -m basic", "test:jsdom": "npm run pretest && npm run build:main && npm run test:unit -- -b jsdom -m basic", "test:node_smoke_tests": "npm run pretest && npm run build:all && node build/tasks/node_smoke_tests.js", "test:promises_aplus": "npm run build:main && node build/tasks/promises_aplus_tests.js", @@ -92,6 +99,8 @@ "@babel/core": "7.24.0", "@babel/plugin-transform-for-of": "7.23.6", "@prantlf/jsonlint": "14.0.3", + "@rollup/plugin-commonjs": "25.0.7", + "@rollup/plugin-node-resolve": "15.2.3", "@swc/core": "1.4.6", "@types/selenium-webdriver": "4.1.22", "body-parser": "1.20.2", @@ -121,6 +130,7 @@ "rollup": "4.12.1", "selenium-webdriver": "4.18.1", "sinon": "9.2.4", + "webpack": "5.90.3", "yargs": "17.7.2" }, "commitplease": { |