Comments (8)
I was half asleep, sorry! I forgot about webpack nano hahaha
If you want you can add those to @types, but I’ll be adding those as I have time this week (pretty busy with work)
from webpack-nano.
Sure thing!
I'll make one right now.
from webpack-nano.
Hi! There are!
@types/webpack-plugin-serve
from webpack-nano.
Hi! Those typings don't apply to webpack-nano
because they're for webpack-plugin-serve
.
I've got those types in my project, but still can't import from webpack-nano/argv
.
I'll double check this when I'm back at my computer in ~30 minutes, but pretty sure TypeScript won't like trying to load the @types
that have a different name to the package in question.
from webpack-nano.
Yeah I just checked: those typings don't reference webpack-nano
at all, so won't be picked up by the type acquisitioner, nor consumed by TS
from webpack-nano.
Honest question here: why would a CLI with no API interface need types?
from webpack-nano.
@shellscape I know, but you can't do import argv from 'webpack-nano/argv'
w/o the types.
It's weird one, and I suspect the types will either be just an export of unknown
or any
, but there is a use-case for require
/importing... 🤷♀
from webpack-nano.
Yeah you're absolutely right on that one. That's small enough that I wouldn't be opposed to shipping a d.ts
file in the package. Would you be willing to open a small PR for that?
from webpack-nano.
Related Issues (11)
- replace ts-node with sucrase-node HOT 15
- 0.6.3 cannot be run from yarn workspace subdirectory HOT 6
- Package size :) HOT 5
- Preserve log colors HOT 16
- Improve webpack 5 compatibility HOT 2
- Webpack Mode not propagate?! HOT 3
- webpack-nano package.json possible fix? HOT 2
- Indicate when file change has been detected when watching HOT 1
- Allow webpack.config.babel.js HOT 1
- Using babel for webpack config? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-nano.