The loader is unable to load a module where the filename ends in css. Examples modules include css.ts and postcss.ts (import postcss from './postcss';).
I believe this may be caused by this line because the regex does not look correct, but I haven't yet tested it.
// line 50 - regex should be /\.css$/ maybe?
if (/.css$/.test(importPath)) {
Package Version: 2.0.0-beta2.4
Code
import postcss from './postcss';
Expected behavior:
The module should load with no issues.
Actual behavior:
An error occurs (uncaught promise):
(node:68060) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: ENOENT: no such file or directory, stat '/Users/nicknisi/code/dojo/editor/src/support/postcss'
Bug
The loader is unable to load a module where the filename ends in
css
. Examples modules includecss.ts
andpostcss.ts
(import postcss from './postcss';
).I believe this may be caused by this line because the regex does not look correct, but I haven't yet tested it.
Package Version: 2.0.0-beta2.4
Code
Expected behavior:
The module should load with no issues.
Actual behavior:
An error occurs (uncaught promise):