We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug / Enhancement I could not require a module which name contains /.
/
Package Version: 2.0.0-beta.9
Code
I have 2 modules, one named @mymodule/A, and the other named @mymodule/B, and they both are published to npm.
@mymodule/A
@mymodule/B
- A a.js - umd a.js - B b.js - umd b.js
I import them in @mymodule/C/c.ts
@mymodule/C/c.ts
import * as a from '@mymodule/A/a'; import * as b from '@mymodule/B/b';
Then, I would like use the umd file.
require.config({ baseUrl: './node_modules', packages:[{ name: '@mymodule/A', location: './@mymodule/A/umd/' },{ name: '@mymodule/B', location: './@mymodule/B/umd/' }] });
Expected behavior:
I thought it would require file: /node_modules/@mymodule/A/umd/a.js and file /node_modules/@mymodule/B/umd/b.js;
/node_modules/@mymodule/A/umd/a.js
/node_modules/@mymodule/B/umd/b.js
Actual behavior:
The loader just ignored the config and require the file: /node_modules/@mymodule/A/a.js and file /node_modules/@mymodule/B/b.js;
/node_modules/@mymodule/A/a.js
/node_modules/@mymodule/B/b.js
The text was updated successfully, but these errors were encountered:
Adding support for npm namespaces, issue dojo#134
0c6b18a
Adding functional test for @ package, issue dojo#134
cfcc834
Fixing support for @ root packages, issue dojo#134
e764bce
Improving package check, issue dojo#134
d87e593
Adding support for npm namespaces (#143)
48a4695
* Adding support for npm namespaces, issue #134 * Adding functional test for @ package, issue #134 * Fixing support for @ root packages, issue #134 * Improving package check, issue #134
Resolved with #143
Sorry, something went wrong.
rorticus
No branches or pull requests
Bug / Enhancement
I could not require a module which name contains
/
.Package Version: 2.0.0-beta.9
Code
I have 2 modules, one named
@mymodule/A
, and the other named@mymodule/B
, and they both are published to npm.I import them in
@mymodule/C/c.ts
Then, I would like use the umd file.
Expected behavior:
I thought it would require file:
/node_modules/@mymodule/A/umd/a.js
and file/node_modules/@mymodule/B/umd/b.js
;Actual behavior:
The loader just ignored the config and require the file:
/node_modules/@mymodule/A/a.js
and file/node_modules/@mymodule/B/b.js
;The text was updated successfully, but these errors were encountered: