|
|
@@ -5,7 +5,7 @@ const nodeResolve = require('rollup-plugin-node-resolve')
|
|
|
// const sass = require('rollup-plugin-sass')
|
|
|
const scss = require('rollup-plugin-scss') // does correct ordering
|
|
|
// const postCss = require('rollup-plugin-postcss') // was only used to extra non-sass CSS. obsolete
|
|
|
-const { renderBanner, isRelPath, SOURCEMAP_PLUGINS, WATCH_OPTIONS, EXTERNAL_BROWSER_GLOBALS, TEMPLATE_PLUGIN, onwarn, watchSubdirSassIncludes, isScssPath } = require('./rollup-util')
|
|
|
+const { renderBanner, isRelPath, SOURCEMAP_PLUGINS, WATCH_OPTIONS, EXTERNAL_BROWSER_GLOBALS, TEMPLATE_PLUGIN, onwarn, isScssPath } = require('./rollup-util')
|
|
|
const { pkgStructs, pkgStructHash, getCorePkgStruct, getNonPremiumBundle } = require('./pkg-struct')
|
|
|
const alias = require('rollup-plugin-alias')
|
|
|
|
|
|
@@ -59,7 +59,6 @@ function buildBundleConfig(pkgStruct, isDev) {
|
|
|
plugins: [
|
|
|
alias(buildAliasMap()),
|
|
|
nodeResolve(), // for requiring tslib. TODO: whitelist?
|
|
|
- watchSubdirSassIncludes,
|
|
|
// sass({
|
|
|
// output: true, // to a .css file
|
|
|
// options: {
|
|
|
@@ -69,7 +68,8 @@ function buildBundleConfig(pkgStruct, isDev) {
|
|
|
// }),
|
|
|
scss({
|
|
|
output: true, // to a .css file
|
|
|
- prefix: (pkgStruct.isCore ? '' : coreVarsScssString) + '\n'
|
|
|
+ prefix: (pkgStruct.isCore ? '' : coreVarsScssString) + '\n',
|
|
|
+ watch: path.join(process.cwd(), pkgStruct.srcDir, 'styles')
|
|
|
}),
|
|
|
...(isDev ? SOURCEMAP_PLUGINS : []),
|
|
|
{
|
|
|
@@ -124,7 +124,6 @@ function buildNonBundleConfig(pkgStruct, bundleDistDir, isDev) {
|
|
|
sourcemap: isDev
|
|
|
},
|
|
|
plugins: [
|
|
|
- watchSubdirSassIncludes,
|
|
|
// if we don't provide this whitelist, all external packages get resolved and included :(
|
|
|
nodeResolve({ only: [ 'tslib' ] }),
|
|
|
TEMPLATE_PLUGIN,
|