Open narration-sd opened 2 years ago
so that ESM module files (.mjs) can successfully import this package, while keeping the .js extension. This feature was added to Nodejs at v12.0.0. Documented to present here, widely needed and used.
Second this.
Not having this line is breaking my SSR build which imports this plugin.
so that ESM module files (.mjs) can successfully import this package, while keeping the .js extension. This feature was added to Nodejs at v12.0.0. Documented to present here, widely needed and used.