Don't include `.dev.js` stuff in the build
See original GitHub issuehttps://www.runpkg.com/?@web3-ui/core@0.1.0/dist/web3-ui-core.cjs.dev.js
This shouldn’t be published to npm because when process.env.NODE_ENV
is not production
, the dev.js
file is being used.
'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./web3-ui-core.cjs.prod.js");
} else {
module.exports = require("./web3-ui-core.cjs.dev.js");
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How do you prevent install of "devDependencies" NPM ...
The npm install command will install the devDependencies along other dependencies when run inside a package directory, in a development environment (the ...
Read more >Developing Without a Build (1): Introduction
Tagged with javascript, buildless, webcomponents, importmaps. ... Build tools have really helped push web development forward.
Read more >Can't find build.js. I have NO IDEA what I'm doing - SitePoint
I used to be able to find JS projects on github and just download them and use them. I'm having problems with a...
Read more >Do npm dependencies and devDependencies effect your ...
It's clear from the tests above that npm modules installed as dependencies and devDependencies don't matter in terms of your production build, ...
Read more >How To Build JavaScript Projects Without Getting Stuck
JavaScript Simplified Course: https://javascriptsimplified.comThis is an edited version of the livestream I did yesterday.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can short-circuit this by changing
main
inpackage.json
todist/web3-ui-core.cjs.prod.js
then it never enters that fileGot you covered mate! ❤️