mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-31 14:00:43 +00:00
Webpack likes to pick the ES module versions of modules over CJS
versions. So, if we do `require('preact')`, we can get the ES module
version of it. preact in version 8.3.0 switched its file extension
from `.esm.js` to `.mjs`, which in webpack's default configuration meant
the module implementation became much stricter. The result is that we
get a different value in `require('preact')`.
This older version of preact doesn't use `.mjs` yet so we can safely
`require('preact')` it in webpack. It still picks the ESM version, but
now it uses the looser implementation which is interchangeable for our
purposes.
34 lines
755 B
JSON
34 lines
755 B
JSON
{
|
|
"name": "@uppy/file-input",
|
|
"description": "Simple UI of a file input button that works with Uppy right out of the box",
|
|
"version": "1.0.0",
|
|
"license": "MIT",
|
|
"main": "lib/index.js",
|
|
"style": "dist/style.min.css",
|
|
"types": "types/index.d.ts",
|
|
"keywords": [
|
|
"file uploader",
|
|
"upload",
|
|
"uppy",
|
|
"uppy-plugin",
|
|
"file-input"
|
|
],
|
|
"homepage": "https://uppy.io",
|
|
"bugs": {
|
|
"url": "https://github.com/transloadit/uppy/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/transloadit/uppy.git"
|
|
},
|
|
"dependencies": {
|
|
"@uppy/utils": "0.30.5",
|
|
"preact": "8.2.9"
|
|
},
|
|
"devDependencies": {
|
|
"@uppy/core": "1.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@uppy/core": "^1.0.0"
|
|
}
|
|
}
|