Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does !(exclamation point) mean before and after in javascript?

I am working with this project and am trying to figure out what the exclamation before and after means.

import ICHING from '!json!constants/iching_deoxy.json';
like image 761
Rich Costello Avatar asked Feb 01 '26 04:02

Rich Costello


1 Answers

This is an inline webpack loader indicator where json is the json-loader

It's possible to overwrite any loaders in the configuration by prefixing the entire rule with !

This is not part of the Javascript or Ecmascript specifications

like image 99
Sagiv b.g Avatar answered Feb 02 '26 16:02

Sagiv b.g



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!