This website requires JavaScript.
Explore
Help
Sign In
root
/
webpack
mirror of
https://github.com/webpack/webpack.git
Watch
1
Star
0
Fork
You've already forked webpack
0
Code
Issues
Actions
1
Packages
Projects
Releases
Wiki
Activity
1cab8f4fd6
webpack
/
test
/
cases
/
parsing
/
extract-amd
/
warnings.js
4 lines
92 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Optional externals in amd use globals instead of an explicit dependency There isn't any mechanism in the amdjs spec to provide optional dependancies (although a requirejs loader plugin could do that, it's not standard). The best approach found was knockout's optional dependancy on jquery, for which it doesn't use require, it only uses globals. This solution will need to be improved for use of requirejs/amd in commonjs environments, and could be toggled with a flag.
2014-07-17 16:39:44 +08:00
module
.
exports
=
[
chore: fix eslint
2023-04-13 02:09:24 +08:00
[
/Module not found/
,
/Can't resolve '\.\/b' /
,
{
details
:
/b\.js/
}
]
Optional externals in amd use globals instead of an explicit dependency There isn't any mechanism in the amdjs spec to provide optional dependancies (although a requirejs loader plugin could do that, it's not standard). The best approach found was knockout's optional dependancy on jquery, for which it doesn't use require, it only uses globals. This solution will need to be improved for use of requirejs/amd in commonjs environments, and could be toggled with a flag.
2014-07-17 16:39:44 +08:00
]
;