Commit Graph

113 Commits

Author SHA1 Message Date
Tobias Koppers 3e778b85c7 fix minor type issues and linting 2018-06-20 12:04:53 +02:00
Mohsen Azimi 04d2af0825 Sean comments (even more code questions?) 2018-06-19 15:48:00 -07:00
Tobias Koppers 27d45e8236
Merge branch 'master' into bugfix/number-to-identifier 2018-05-29 20:42:51 +02:00
Tobias Koppers cf8ae64f8a fix incorrect substraction 2018-05-29 19:49:56 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Sean Larkin a9c771a8ac fix eslint error 2018-05-10 13:13:33 -07:00
Tobias Koppers 688b4fc028
Merge branch 'master' into feature/template-type-support 2018-05-09 10:03:10 +02:00
Tobias Koppers f2ad440de8 More strict linting of jsdocs
Use TODO over any when type is possible
2018-05-08 14:53:33 +02:00
Sean Larkin 6a919ba8dd chore(types): add type support for Template base class 2018-05-03 21:37:34 -07:00
Sean Larkin c7f3c588e3 fix(): fix outstanding typewarnings from typeof in Template 2018-04-30 23:00:22 -05:00
Sean Larkin 0fcd5e5775 refactor(template): add type support to maint-template and template 2018-04-20 18:35:02 -06:00
Sean Larkin 5782d6b160 make 5th arg optional for renderChunkModules 2018-04-20 17:56:03 -06:00
Sean Larkin 86aa18d699 refactor(template): add type support for Template base class 2018-04-20 17:51:40 -06:00
Tobias Koppers 1b50e4e96d
Merge pull request #6833 from webpack/ellipsis
Use ellipsis instead of '...'
2018-03-29 11:00:28 +02:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Florent Cailhol 72786beee7 Use ellipsis instead of '...' 2018-03-22 10:54:18 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol d4811b0d37 Use for-of loops instead of forEach 2018-01-23 22:53:18 +01:00
Florent Cailhol 1590751da2 Replace dictionaries by Map or Set 2018-01-06 09:45:57 +01:00
Tobias Koppers 16ee68b5f9 make all methods on Template static 2017-12-07 09:49:50 +01:00
Tobias Koppers 56328a7cab upgrate tapable in Templates 2017-11-28 18:43:01 +01:00
Tobias Koppers 5a4f0aca67 change imports of tapable to old version
prepare to migrate to new tapable version
2017-11-27 20:56:42 +01:00
Tobias Koppers 40871b8f79
Merge pull request #5779 from webpack/improvement/shorter-mangle
generate shorter export names when using many exports
2017-11-15 22:19:55 +01:00
Tobias Koppers 00f2b5ede7 advanced module type refactoring
added json type
.mjs default to javascript/esm type
adjusted parser plugins to react on module type
2017-11-11 19:27:19 +01:00
Tobias Koppers 9cb10574a4 generate shorter export names when using many exports 2017-11-11 11:01:54 +01:00
Tobias Koppers d67e5b00f2 check of no removedModules 2017-11-10 11:36:52 +01:00
Tobias Koppers f131091082 change ModuleTemplate.render argument to options object 2017-11-10 11:36:36 +01:00
Tobias Koppers 41a1d602e1 added WebAssembly Proof of Concept 2017-11-10 09:17:11 +01:00
Tobias Koppers f7c2f8e470 Update code style to arrow functions 2017-11-08 11:56:01 +01:00
Tobias Koppers f83c913e53 Merge branch 'master' into refactor/cleanups 2017-09-06 09:39:28 +02:00
Tobias Koppers 7a47bd8f79 add g flag to regexp 2017-08-28 11:58:05 +02:00
Sean Larkin 45a447eada feat(template): cleanup template a bit, add a test for toPath 2017-08-25 14:34:05 -06:00
Tobias Koppers 9ca96a5830 fix Template.getFunctionContent for windows line breaks 2017-08-08 09:43:18 +02:00
Tobias Koppers 91bfd4559a move pathinfo comment into Template helper function
change toIdentifier to generate less underscores
2017-08-08 09:42:43 +02:00
Tobias Koppers 991b360c90 fix useless-escape linting issues 2017-07-24 11:54:06 +02:00
Tobias Koppers e1bac32c19 Use a Set to store modules in a chunk 2017-05-16 11:50:50 +02:00
Tobias Koppers 22e7d254ee Add webpackMode optios for import()
Allow lazy, lazy-once and eager mode for import()
Fix a bug which caused context chunks to be merged when using chunk name
Allow to work in env where there is no Promise.resolve
2017-05-05 09:03:24 +02:00
Tim Sebastian e66a039061 use const where applicable in Template 2017-02-05 12:20:22 +11:00
Tejas Bubane c6af4ab3fa
Convert Template and its subclasses to ES2015
Subclasses include `MainTemplate`, `ChunkTemplate` and
`HotUpdateChunkTemplate`.
2017-01-13 12:34:21 +05:30
Tim Sebastian d74491d3f1 simplify numberToIdentifer method 2016-12-26 21:53:12 +11:00
Tobias Koppers 1675a5a5ca new way to handle new ids, reuse old ids
adjusted HMR to handle id reusing
2016-07-18 00:41:26 +02:00
Tobias Koppers cf00a1a22d rewrite cases where js beautify and eslint disagree on formatting 2016-06-20 21:46:27 +02:00
Simen Bekkhus b1bdd6989f Use eslint's indent rule 2016-06-20 08:21:00 +02:00
Alexander Faunt 81ad5fd6a6 fix numberToIdentifer so it cant output duplicates 2016-02-08 14:59:09 +00:00
Tobias Koppers 8cb0ee7b85 mangle harmony export names 2016-02-03 23:40:41 +01:00
Tobias Koppers ded70aef28 moves stuff from webpack-core to webpack-sources 2015-12-29 17:44:55 +01:00
Tobias Koppers c76c52720b sort modules by id when emitting 2015-11-29 20:13:04 +01:00
Ahmet Katrancı 8ff6cb5fed Report constructor correctly when inheriting from Tapable 2015-08-18 12:35:57 +01:00
Tobias Koppers 5cd6e7d0b3 fixed a few linting issues 2015-07-16 00:39:56 +02:00
Tobias Koppers f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Tobias Koppers a04ffb9283 added (experimental) NamedModulesPlugin 2015-06-27 22:47:51 +02:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Jason Anderson f371945a29 Add TemplatedPathPlugin 2014-09-11 15:31:08 +02:00
Kurt Harriger bdae82a290 Replace ad-hoc identifier cleansing with helper function
Generalized identifier cleansing to replace invalid (and unicode)
characters with underscores to ensure a valid function name.

Applied function in other places functions were generated based on
libarary name.
2014-08-04 08:25:33 -06:00
Tobias Koppers d80cdcefac Code Quality 2014-06-24 18:53:32 +02:00
Tobias Koppers 3247725ba3 refactored MainTemplate to plugin interface 2014-06-02 21:23:53 +02:00
Tobias Koppers b6923ccf93 sourceMapsFilename support querystrings
fixes #217
2014-04-03 19:46:53 +02:00
Tobias Koppers 7e8b2c6972 fixed empty commons chunk 2013-12-19 11:46:45 +01:00
Tobias Koppers 81203a3a1c added node.js HMR,
fixed #137: exports correct require properties on hotRequire too
added more test combinations
2013-12-17 00:56:43 +01:00
Tobias Koppers 4b9472b24d save bytes #135 2013-12-13 12:58:10 +01:00
Tobias Koppers 6af5702c44 added [chunkhash] support, fixes #90 2013-05-21 01:46:14 +02:00
Tobias Koppers 0de7c73ad8 SourceMap support 2013-03-26 16:54:41 +01:00