UNPKG

has-dynamic-import

Version:

Does the current environment have `import()` support?

114 lines (113 loc) 2.8 kB
{ "name": "has-dynamic-import", "version": "2.1.1", "description": "Does the current environment have `import()` support?", "main": "index.js", "browser": { "./": "./browser.js", "./syntax": "./browser-syntax.js" }, "exports": { ".": [ { "browser": "./browser.js", "default": "./index.js" }, "./index.js" ], "./syntax": [ { "browser": "./browser-syntax.js", "default": "./syntax.js" }, "./syntax.js" ], "./package.json": "./package.json" }, "sideEffects": false, "scripts": { "prepack": "npmignore --auto --commentLines=autogenerated && npm run emit-types", "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "lint": "eslint --ext=.js,.mjs .", "tsc": "tsc -p .", "postlint": "npm run tsc", "preemit-types": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map", "emit-types": "npm run tsc -- --noEmit false --emitDeclarationOnly", "pretest": "npm run lint", "tests-only": "nyc tape 'test/**/*.js'", "test": "npm run tests-only", "posttest": "npx npm@'>= 10.2' audit --production", "version": "auto-changelog && git add CHANGELOG.md", "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" }, "repository": { "type": "git", "url": "git+https://github.com/inspect-js/has-dynamic-import.git" }, "keywords": [ "import", "dynamic", "modules", "esm", "javascript", "ecmascript", "esmodules" ], "author": "Jordan Harband <ljharb@gmail.com>", "funding": { "url": "https://github.com/sponsors/ljharb" }, "license": "MIT", "bugs": { "url": "https://github.com/inspect-js/has-dynamic-import/issues" }, "homepage": "https://github.com/inspect-js/has-dynamic-import#readme", "devDependencies": { "@ljharb/eslint-config": "^21.1.1", "@ljharb/tsconfig": "^0.2.2", "@types/call-bind": "^1.0.5", "@types/node": "^20.17.10", "@types/semver": "^7.5.8", "@types/tape": "^5.7.0", "auto-changelog": "^2.5.0", "encoding": "^0.1.13", "eslint": "=8.8.0", "in-publish": "^2.0.1", "npmignore": "^0.3.1", "nyc": "^10.3.2", "safe-publish-latest": "^2.0.0", "semver": "^6.3.1", "tape": "^5.9.0", "typescript": "next" }, "directories": { "test": "test" }, "auto-changelog": { "output": "CHANGELOG.md", "template": "keepachangelog", "unreleased": false, "commitLimit": false, "backfillLimit": false, "hideCredit": true }, "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" }, "testling": { "files": "test/index.js" }, "publishConfig": { "ignore": [ ".github/workflows", "!*.d.ts", "!*.d.ts.map" ] }, "engines": { "node": ">= 0.4" } }