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
Hi, thanks for your greate work.
I'm a typescript user and use webpack to bundle my project files.
The webpack@2 has the Tree Shaking features which can reduce the size of files.
Since this feature can only work on es6, can you include the source code (the ts code are ok because I can use ts-loader to convert them), other than the production code in the npm package?
The text was updated successfully, but these errors were encountered:
In blueprint, I suggested publishing ES6 / ES2015 modules in the distribution; I think plottable should do the same. You can use ts-loader to bundle the library files in either case (.ts vs ES6 .js), but I think typings resolution will be simpler if the distribution includes .d.ts and .js files.
Thanks for the report @chenzhutian , sounds reasonable. This should be an easy external PR - we can simply whitelist src/ in the .npmignore to include the TS. We'll be happy to accept it!
After some researching, according to here microsoft/TypeScript#12358, I think the office team does not recommend to publish .ts source code for some reasons. It seems that publish the es6 code is a better choice.
Hi, thanks for your greate work.
I'm a typescript user and use webpack to bundle my project files.
The webpack@2 has the Tree Shaking features which can reduce the size of files.
Since this feature can only work on es6, can you include the source code (the ts code are ok because I can use ts-loader to convert them), other than the production code in the npm package?
The text was updated successfully, but these errors were encountered: