Closed kesha-antonov closed 5 years ago
Hello!
I have this stack: preact + browserify + coffeeify + babelify
preact + browserify + coffeeify + babelify
After running
let b = browserify(bundleConfig) .transform('coffeeify', {}) .transform('babelify', { presets: [ "es2015", "react" ], plugins: [ ["module-resolver", { "root": ["."], "alias": { "react": "preact-compat", "react-dom": "preact-compat" } }], ['transform-react-remove-prop-types', { classNameMatchers: ['Component', '_Component'] }], 'transform-object-assign', ["transform-react-jsx", { "pragma":"h" }] ], extensions: [ ".coffee", ".js" ], global: true })
propTypes are not removed.
Do you have any advice?
I have no clue. Do you have a reproduction (it's not like I would look at it, but without, nobody else can help)?
Hello!
I have this stack:
preact + browserify + coffeeify + babelify
After running
propTypes are not removed.
Do you have any advice?