elliottsj/babel-inline-import-loader

Watch issue when using // comment

Closed this issue · 3 comments

Hi!

After hours of debugging, i found a bug in the watcher of babel-inline-import-loader.

Here, the watcher works properly :

import React from 'react';
import testString from './test.md';

Here, the watcher doesn't work properly :

import React from 'react';

// This comment prevent the watcher to works properly
import testString from './test.md';

It's very annoying because the watcher will no longer watch the test.md file. Please help us... :(

🙏

Released as v1.0.1

Thanks @elliottsj for being so responsive. It works great.