Commit Graph

5102 Commits

Author SHA1 Message Date
Tobias Koppers 0f6c36c3e4
Merge pull request #6111 from webpack/refactor/meta
Refactor meta -> buildMeta, keep instances between builds
2017-12-12 23:03:22 +01:00
Tobias Koppers 5b7645dbb7 bugfix in LoaderPlugin 2017-12-12 22:27:49 +01:00
Tobias Koppers 90c5adef14 linting, unittests 2017-12-12 21:21:02 +01:00
Tobias Koppers e829a5ed71 Reset dependencies in unbuild
Elsewise they are cleared in disconnect and module removing doesn't work correctly
2017-12-12 17:01:14 +01:00
Tobias Koppers c68f224272 move providedExports into buildMeta 2017-12-12 17:01:03 +01:00
Tobias Koppers aae32c770b cache buildMeta 2017-12-12 16:58:03 +01:00
Tobias Koppers ffb977fed4 refactor meta -> buildMeta, add factoryMeta
add compat layer to Module.meta
2017-12-12 16:57:50 +01:00
Tobias Koppers 2bb95a3b93 Refactor addModule to keep Module instances between rebuilds 2017-12-12 16:57:50 +01:00
Tobias Koppers 081ad5dc67
Merge pull request #6110 from webpack/dependencies/upgrade-tapable
upgrade tapable
2017-12-12 15:35:54 +01:00
Tobias Koppers 758f1eb464 Merge branch 'master' into next 2017-12-12 14:45:09 +01:00
Tobias Koppers 7110e0455c upgrade tapable 2017-12-12 14:42:50 +01:00
Tobias Koppers d526d5f11c
Merge pull request #6086 from webpack/refactor/runtime-template
pass runtimeTemplate to DependencyTemplate
2017-12-11 20:42:38 +01:00
Tobias Koppers 6ff0fbd576
Merge pull request #6106 from rowanoulton/fix-ident-test
Fix ident config position
2017-12-11 20:37:16 +01:00
Tobias Koppers 758a388f69 pass runtimeTemplate to DependencyTemplate
move outputOptions and requestShortener into runtimeTemplate
2017-12-11 17:59:32 +01:00
Rowan Oulton 9c392ae397 Fix ident config position 2017-12-11 08:37:15 -08:00
Tobias Koppers e8bfcd7330
Merge pull request #5869 from ev1stensberg/cli
Make use of webpack-cli in webpack
2017-12-11 08:56:53 +01:00
Tobias Koppers 4f358af4ec
Merge pull request #6102 from webpack/feature/tapable-upgrade-lib-manifest-plugin
feat(tapable): upgrade LibManifestPlugin to Tapable v1
2017-12-11 07:50:28 +01:00
Sean Larkin 04555e36d3 fix(): remove new statement before Buffer.from 2017-12-09 21:43:17 -08:00
Even Stensberg d9a147710f bump to jscodeshift 0.4 2017-12-09 08:53:02 +01:00
Even Stensberg 57ee41adf7 update transisive jscodeshift dependency 2017-12-09 08:21:20 +01:00
Even Stensberg e6f940aee8 Merge remote-tracking branch 'webpack/next' into cli 2017-12-09 05:38:41 +01:00
Even Stensberg 3b88f08230 update to 1.5.0 2017-12-09 05:38:30 +01:00
Tobias Koppers 86786811e4
Merge pull request #6085 from webpack/refactor/static-template
make all methods on Template static
2017-12-08 17:59:15 +01:00
Tobias Koppers bbf14580a1
Merge pull request #6096 from ooflorent/use_tapable
Use tapable instead of 'plugin'
2017-12-08 17:58:50 +01:00
Florent Cailhol 36c690d37f Use tapable instead of 'plugin' 2017-12-08 14:23:31 +01:00
Sean Larkin 99bbbebfe2 feat(tapable): upgrade LibManifestPlugin to Tapable v1 2017-12-07 23:50:14 -08:00
Tobias Koppers 699a392cee
Merge pull request #6078 from webpack/feature/tapable-upgrade-entry-option-plugin
feat(tapable): upgrade Single|Multi|DynamicEntryPlugin to tapable v1
2017-12-08 08:47:06 +01:00
Tobias Koppers e8da5a94e8
Merge branch 'next' into refactor/static-template 2017-12-08 08:45:55 +01:00
Tobias Koppers 2a04521b90
Merge pull request #6087 from ooflorent/remove_bootstrap_hash
Remove `webpack/bootstrap` hash in source map
2017-12-08 08:45:07 +01:00
Tobias Koppers 3dc9716b49
Merge pull request #6089 from rowanoulton/add-ident-to-rule-schema
Add ident to the list of permissible properties for Rule.use
2017-12-08 08:43:31 +01:00
Sean Larkin e9270cc56f fix(beautify): fix beautify-lint 2017-12-07 23:00:32 -08:00
Rowan Oulton 6f85f9b386 Add ident propertry to list of permissible properties of Rule.use
As per https://webpack.js.org/configuration/module/#useentry
2017-12-07 09:47:55 -08:00
Florent Cailhol dcfe3cc4df Remove `webpack/bootstrap` hash in source map
Before this change, a hash was appended to `webpack:///webpack/bootstrap`
and appeared in source maps' `sources`.

Before:

```js
{"version":3,"sources":["webpack:///webpack/bootstrap a0df2f8d793658baad72",…
```

Now:

```js
{"version":3,"sources":["webpack:///webpack/bootstrap",…
```

Quoting @sokra:

> Send a PR to remove this hash in the next branch. It's not needed anyway...

Fix #6082
2017-12-07 17:01:57 +01:00
Tobias Koppers 16ee68b5f9 make all methods on Template static 2017-12-07 09:49:50 +01:00
Tobias Koppers dc7460f9a5
Merge pull request #6079 from ooflorent/mock_hooks
Improve `PluginEnvironment` helper to support tapable's hooks
2017-12-07 09:22:27 +01:00
Florent Cailhol fa72f1f124 Improve `PluginEnvironment` helper to support tapable's hooks
Test cases use `PluginEnvironment` to monitor plugins' actions.
Before this change, it only mocked `.plugin()` which is not enough
to test plugins written using `Tapable#hooks`.

This implementation uses a `Proxy` to trap hook calls and log them
as events.
2017-12-06 15:12:41 +01:00
Tobias Koppers 725fff2829
Merge pull request #6071 from ooflorent/parser_eval
Add static analysis for bitwise operations and exponential operator
2017-12-06 08:45:28 +01:00
Even Stensberg 1bfbe79c21 update to 1.4.8 2017-12-06 02:07:32 +01:00
Even Stensberg 43d81a110e update dependency to 1.4.7 2017-12-06 01:48:58 +01:00
Even Stensberg 569f6d1d62 update dependency 2017-12-06 01:47:27 +01:00
Even Stensberg c312bcfdd1 remove .nsprc 2017-12-06 01:46:58 +01:00
Even Stensberg cdefea844e update dependency 2017-12-06 01:46:58 +01:00
Even Stensberg f302334380 add .nsprc 2017-12-06 01:45:43 +01:00
Even Stensberg 4b0332d390 sync webpack-cli with changes in bin/* and binCases
remove old bin code

try using the cli folder for bInTestCases

update folders in binTestCases

increase callback timeout to see if that helps

update cli-dep

remove redundant console.log
2017-12-06 01:45:43 +01:00
Florent Cailhol da08376fd9 Evaluate bitwise and exponential operations 2017-12-05 17:16:45 +01:00
Tobias Koppers f3fdd26996
Merge pull request #5940 from michael-ciniawsky/chore
chore(package): update `uglifyjs-webpack-plugin` v0.4.6...v1.1.1
2017-12-05 09:05:48 +01:00
Tobias Koppers 85951d33be Merge branch 'master' into next 2017-12-05 09:03:45 +01:00
Tobias Koppers e03a227182
Merge pull request #6055 from nikhilgaba/parserFix
Improve Parser to recognize 'new Foo(...)' type expressions
2017-12-05 07:55:41 +01:00
Nikhil Gaba 1083deabdd Fixed styling issues 2017-12-04 18:40:23 -08:00
Nikhil Gaba 3c53df78c7 Added unit tests for new Foo (...) parser feature 2017-12-04 18:03:50 -08:00