mysticatea / eslint4b

ESLint which works in browsers.
MIT License
37 stars 19 forks source link

Confused about bundle eslint-plugin #9

Open cztflove opened 3 years ago

cztflove commented 3 years ago

I forked the repo attempting to extend typescript-eslint When I run yarn build, rollup occurs error

'@typescript-eslint/eslint-plugin' is imported by scripts/shim/test2.js, but could not be resolved – treating it as an external dependency

the path is valid but why rollup could not resolve it

import {rules} from "@typescript-eslint/eslint-plugin"
function testMethod (){
    console.log("test",rules);
}
export default testMethod;
yfwz100 commented 3 years ago

What's your configuration of rollup? It seems that you haven't configured the node-resolve plugin.