You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wouldn't it make more sense if "main" in package.json pointed to "datatable.min.js"? It seems weird that it points to the src js file. As a user I want to use the built version - not the source file.
That way I could simply include ractive-datatable in browserify:
For me and my team's use case it's more efficient to point to the src, since it doesn't contain extra UMD loaders and webpack will pick it up like a first class module. Before, I didn't even include a built version. I include it as an after thought mainly for people with no build systems at all.
I'm not that familiar with Browserify, though. Why can't it read the package.main and use the version in src?
I agree with @JonDum . When you don't use a build system, use directly datatable.min.js.
I am using rollup to bundle some packages with my own, and the ones that point main to a build file spoils things a bit, because the extra UMD loaders.
Wouldn't it make more sense if
"main"
inpackage.json
pointed to"datatable.min.js"
? It seems weird that it points to the src js file. As a user I want to use the built version - not the source file.That way I could simply include ractive-datatable in browserify:
I guess for now I have to do something like:
Or?
The text was updated successfully, but these errors were encountered: