This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
module.exports = { | |
webpackConfig: { | |
module: { | |
rules: [ | |
{ | |
test: /\.jsx?$/, | |
exclude: /node_modules/, | |
loader: "babel-loader" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
webpackConfig: { | |
module: { | |
rules: [ | |
{ | |
test: /\.jsx?$/, | |
exclude: /node_modules/, | |
loader: "babel-loader" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import babel from "rollup-plugin-babel"; | |
import commonjs from "rollup-plugin-commonjs"; | |
import resolve from "rollup-plugin-node-resolve"; | |
import external from "rollup-plugin-peer-deps-external"; | |
import { terser } from "rollup-plugin-terser"; | |
import { uglify } from "rollup-plugin-uglify"; | |
import packageJSON from "./package.json"; | |
const input = "./src/index.js"; | |
const minifyExtension = pathToFile => pathToFile.replace(/\.js$/, ".min.js"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import babel from "rollup-plugin-babel"; | |
import commonjs from "rollup-plugin-commonjs"; | |
import resolve from "rollup-plugin-node-resolve"; | |
import external from "rollup-plugin-peer-deps-external"; | |
import { terser } from "rollup-plugin-terser"; | |
import { uglify } from "rollup-plugin-uglify"; | |
import packageJSON from "./package.json"; | |
const input = "./src/index.js"; | |
const minifyExtension = pathToFile => pathToFile.replace(/\.js$/, ".min.js"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import babel from "rollup-plugin-babel"; | |
import commonjs from "rollup-plugin-commonjs"; | |
import resolve from "rollup-plugin-node-resolve"; | |
import external from "rollup-plugin-peer-deps-external"; | |
import { uglify } from "rollup-plugin-uglify"; | |
import packageJSON from "./package.json"; | |
const input = "./src/index.js"; | |
const minifyExtension = pathToFile => pathToFile.replace(/\.js$/, ".min.js"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import babel from "rollup-plugin-babel"; | |
import commonjs from "rollup-plugin-commonjs"; | |
import resolve from "rollup-plugin-node-resolve"; | |
import external from "rollup-plugin-peer-deps-external"; | |
import packageJSON from "./package.json"; | |
const input = "./src/index.js"; | |
export default [ | |
// CommonJS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import babel from "rollup-plugin-babel"; | |
import commonjs from "rollup-plugin-commonjs"; | |
import resolve from "rollup-plugin-node-resolve"; | |
import packageJSON from "./package.json"; | |
const input = "./src/index.js"; | |
export default [ | |
// CommonJS | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import babel from "rollup-plugin-babel"; | |
import commonjs from "rollup-plugin-commonjs"; | |
import packageJSON from "./package.json"; | |
const input = "./src/index.js"; | |
export default [ | |
// CommonJS | |
{ | |
input, |